Hello David.
I would like to use if possible footer1.php on my home page and footer2.php on other pages.
Is this possible by modifying the index.php?
thanks
Mally
Hi
Yep, is it possible for the index.php to known whether its showing the homepage or a page with a product?
otherwise they will show the same footer
mally
Hi,
index.php is only ever used to display the home page; all the other pages (like a product) are displayed by the appropriate other files, for example products.php...
Cheers,
David.
Hi Mal,
Sure - at the bottom of index.php you will have:
require("html/footer.php");
I would leave html/footer.php as your main footer for all other pages, and then make a copy of that file as your starting point for your index page footer, and then simply change the above line to reflect the new name of your home page footer, for example:
require("html/footerHome.php");
Cheers,
David.