Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

dnyman
New Member

Australia
86 Posts

Pre-sales questions only
(More Details...)

Posted - 03/20/2018 :  21:54:47  
We have just purchased ECT for WordPress replacement software to test on our test site - v 6.8.5, with ECT Styles theme. I've installed this with Wordpress in our test environment, and had no real problems.
I'm now coming to grips with how it all works.
One of the first things I tried to do was change the logo. I've attempted this through the Wordpress admin interface (Appearance -> Customize -> Site Identity, installing a new logo image, but to no avail. The only way I managed to get this to work was by renaming the "wp-content/themes/ectwpstyles/images/logo.png" and installing our logo in its place. Is there something I'm doing wrong here?
I would also appreciate some tips on how to edit the header region of the theme from the Wordpress admin interface. Is this possible, so that we can place text other than the site name and phone number, etc, in this header region? And also, is it possible to use the Wordpress admin interface to alter the fonts, colours, etc without having to directly manipulate the css files?

Thanks in advance,
Dave.

Andy
ECT Moderator

95440 Posts

Posted - 03/21/2018 :  01:00:39  
Hi Dave

The logo upload should be fine, I'm wondering if it was a permissions problem.

The header would only really be editable through header.php and the font sizes etc are set in the css file.

Andy

Please feel free to review / rate our software

dnyman
New Member

Australia
86 Posts

Pre-sales questions only
(More Details...)

Posted - 03/21/2018 :  01:24:30  
Thanks Andy. You may be right about the permissions issue. I'll look into it....

Can you also give me a bit of quick advice on which way I should go with adding our "static" pages from our existing web site. We have a large number of .php files from our existing production site, such as index.php, auto_batteries.php, etc. These are designed to direct our customers through our website, and have been crafted using html predominantly, using a copy of one of the ECT .php pages in the first instance, as described in your doco when we initially installed ECT. My main thing is, should I install these into Wordpress CMS, should I leave them as top level .php, etc? If I do put them into Wordpress CMS, how would I get some of the php code, installed into some static page content, to run from within the CMS content, as I believe this is not something Wordpress supports in native form, and I can't see how I would install the PHP Code widget into the page content in Wordpress?
Any help would be greatly appreciated.
Dave.

Andy
ECT Moderator

95440 Posts

Posted - 03/21/2018 :  01:52:37  
You should be able to copy in the HTML from the existing page into the wordpress editor for those pages. I recently used this plugin to add PHP code to wordpress posts https://wordpress.org/plugins/insert-php-code-snippet/ - there's also this one https://wordpress.org/plugins/php-code-widget/

You can keep your pages at the top level and use the Custom URL feature to keep pages names the same.

Andy

Please feel free to review / rate our software

dnyman
New Member

Australia
86 Posts

Pre-sales questions only
(More Details...)

Posted - 03/21/2018 :  20:31:37  
Thanks heaps Andy.
Can I just ask one more question, please?
If I want to have the best of both worlds - i.e. use our existing URL's for our static pages, but place the page content into WordPress so that it's a bit easier to modify within the Wordpress interface, can I strip down the .php static files, place the content into a WordPress page, and reference that page in the .php file, a bit like I have done extensively in the past with the ECT content regions? What would be the PHP code to access a page from within Wordpress? Is this a "shortcode" or something?
Thanks again,
Dave.

Andy
ECT Moderator

95440 Posts

Posted - 03/22/2018 :  01:07:50  
Did you want these static pages to have a .php extension as I'm not sure that's going to be very simple?

Andy

Please feel free to review / rate our software

dnyman
New Member

Australia
86 Posts

Pre-sales questions only
(More Details...)

Posted - 03/22/2018 :  22:02:47  
I think I may have found a solution, but could I have your opinion please.
What I've done is:
Created a WP page, containing the content of the static page I want to display. This had a WP page ID of 58.
In my old php static page, I've used the following code to include the WP content from page ID 58 in the php file:

------------
<?php
$post = get_post( 58 );
$output = $post->post_content;
print "$output\n";
?>
-------------

Seems to work just the way I want it to. The content of the WP page are displayed when I browse to the URL of the .php file just fine. Do you think this code is OK to use? In particular, from a security point of view?

Dave.

Andy
ECT Moderator

95440 Posts

Posted - 03/23/2018 :  00:56:58  
That looks like it should be fine.

Andy

Please feel free to review / rate our software

dnyman
New Member

Australia
86 Posts

Pre-sales questions only
(More Details...)

Posted - 03/23/2018 :  16:13:28  
Thanks Andy. I appreciate your help.
Dave.
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000