Two Footers

Discussion in 'HTML & Website Design' started by nomadicmatt, Jan 22, 2009.

  1. #1
    Hi,

    For my site, http://www.nomadicmatt.com, I am trying to have one footer for the homepage, and then another footer for every other page.

    I created a second footer file called "footerhome.php"

    My php files end with <?php get_footer(); ?>

    so i changed footer to footerhome on the home page and it said there was a fatal error. I didn't do anything to the footerhome code inside the php. I just simply changed the get footer to get footerhome.

    How do I make it so I can have two footers on my website?
     
    nomadicmatt, Jan 22, 2009 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    fatal error comes because you dont have that function enabled
    add footerhome with include like
    <?php include('footerhome.php'); ?>
    or just do a new function similar to get_footer() with the new name and requirements
     
    crivion, Jan 22, 2009 IP
  3. DesignBytes

    DesignBytes Notable Member

    Messages:
    1,237
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    200
    #3
    how do you create that image slide show kinda thing ?
    with prev and next button , plus that sliding up down text info ?
    that looks cool :)
    nice site..
     
    DesignBytes, Jan 22, 2009 IP
  4. plugandplay

    plugandplay Peon

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    make sure your host allows php, most do but they often have different versions.

    contact the support people there, they should be able to help you get it working
     
    plugandplay, Jan 22, 2009 IP