Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2008
    Posts
    17
    Plugin Contributions
    0

    Default Custom Footer for home page

    I'm using the most current version of zen cart and have customized the look for a client. I am 99% finished on the look and feel of the site but want to create a custom footer for the home page only. If I do this in the Define Pages Editor, it pushes my footer over to the left as it is coded that way in the stylesheet.

    Is there a way to create a custom footer for the home page only and allow all the other pages to inherit the footer that is in the tpl_main_page.php?

    HELP!!!!!

    My site is here:
    http://www.chatillon.com/cart

    Thanks for any help you can give.

  2. #2
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Custom Footer for home page

    there is no define page for footer in zencart. but zencart comes with footer and it should display on all pages. your custom template might have broken the code for the footer.

    zencart footer is in includes>templates>common , folder .

    tpl_footer.php

  3. #3
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: Custom Footer for home page

    Well in your tpl footer you could do something like:

    if($this_is_main_page)
    {
    Your custom footer code here...
    } else
    {
    All the normal tpl_footer code here...
    }

  4. #4
    Join Date
    Feb 2008
    Posts
    17
    Plugin Contributions
    0

    Default Re: Custom Footer for home page

    I tried that and it displays the footer on all pages still. Any other advice? Suggestions?

  5. #5
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Custom Footer for home page

    Quote Originally Posted by jamesdenny View Post
    I tried that and it displays the footer on all pages still. Any other advice? Suggestions?
    Try
    http://www.zen-cart.com/forum/showthread.php?t=55487

 

 

Similar Threads

  1. Custom Dropdown for Home Page
    By jill8026 in forum General Questions
    Replies: 3
    Last Post: 2 Mar 2012, 09:36 PM
  2. home page text and footer do not show on home page
    By terrancesmith98 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 27 Oct 2010, 01:45 AM
  3. 1.3.8a - Where do i add custom js for home page only?
    By Stuff4Toys in forum General Questions
    Replies: 28
    Last Post: 17 Nov 2008, 08:58 PM
  4. EZ Page Footer links & Footer look different only on Home
    By DivaVocals in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Aug 2008, 11:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg