I thought that there was a main page only bit of code that I could put in?
I thought that there was a main page only bit of code that I could put in?
One way to do that without messing up anything is to create a "default.php" page by saving the index.php page as default.php.
Then change what you want on the default.php page... make that the landing page by changing your htaccess file list to default.php index.php index.html
That way the default page will appear first, but everything will work - you product pages, search results...etc since they use the index.php page.
You should add a link to the default page too.
Sorry but what and where is my htaccess file list?
To change yourd default directory page:
http://www.javascriptkit.com/howto/htaccess6.shtml
Your htaccess file is in the root diectory
Zen Cart has a variable called $this_is_home_page that can be used to differentiate the contents of the home page from all others. For exampleHowever, because of the way that Template Monster completely re-write much of the template code, there is a high risk that this will not work for you.if ($this_is_home_page) {
your special code in here} else {
normal code for all other pages in here}
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Now I'm having problem to understand about adding image on the main page. OK I got the "add the image inside your define_main_page.php" part, but how to link the image?
Example, my image "title2.jpg" is inside my /include/templates/MY_TEMPLATE/images/ subfloder. How can I put the code inside "define_main_page.php" to link my image from this subfolder?
Please somebody help.
In the define page editor you can enter normal html code for this - just create you anchor statement sorts like:
Code:<a href="Your_reference"><img src="images/your_image.gif" alt="alt_text" width="80" height="80" /></a>
Zen-Venom Get Bitten