You are here:  » Different footer for home.

Support Forum



Different footer for home.

Submitted by mally on Sat, 2007-12-22 20:50 in

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

Submitted by support on Sat, 2007-12-22 20:53

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.

Submitted by mally on Sat, 2007-12-22 20:55

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

Submitted by support on Sat, 2007-12-22 20:56

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.