I understand how to override the header and footer for other pages, like the checkout or shopping cart, but I can't get it to work for the main page.
I tried putting a modified version of tpl_main_page.php into /templates/my_template/index, but it applies the changes to my product category pages, not only the home page.
Can anyone show me how to accomplish this using the $this_is_home_page variable?
I know the concept, but don't know how to implement the code.
Currently my header design is contained within a file called top.php which is called from whithin tpl_header.php.
I was thinking of creating a new file, top_main.php and calling it only when the current page is the home page.
Something like this:
if $this_is_home_page
{
include('top_main.php');
}
else
{
include('top.php');
}
I am completely lost when it comes to writing the actual code, and i'm not even sure this is the correct place to implement it.
My cart is version 1.3.6.
Any help would be appreciated.
Bookmarks