How to call header and Footer on all pages?

Discussion in 'HTML & Website Design' started by Sportscapper Island, Aug 5, 2005.

  1. #1
    Hi everyone, I just started a site not too long ago and Im not all that great with website design. Still learning.

    If anyone knows how I can call my header and footer on all my pages so when I update them I dont have to go through all my pages to update them.

    Right now when I want to change something to the header and footer I have to go through all my pages and update them, its a pain:mad:

    If there is a way I can make one header and one footer file and call them on all my pages, that would be tremendous:)

    Thanks:)
     
    Sportscapper Island, Aug 5, 2005 IP
  2. e10

    e10 Well-Known Member

    Messages:
    2,250
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    185
    #2
    What html editor are you using? In FP you make your header or footer seperate html pages and 'call' on them by inserting an include.
     
    e10, Aug 5, 2005 IP
  3. Sportscapper Island

    Sportscapper Island Peon

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I dont use an html editor I dont think. I have an edit link which I press when I want to go into the coding and then I update that way, basically raw html. All my pages are .php extensions
     
    Sportscapper Island, Aug 5, 2005 IP
  4. entrepreneur7

    entrepreneur7 Peon

    Messages:
    52
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I had this same question and know exactly what you need. I use the .ssi file extension for my header, navigation, and footer. Just do a search for ssi and you'll be sure to find a great tutorial. Once you get the hang of it it's really easy, just a matter of adding a small line of code in each place that you want the pieces to be called to.

    -Brian Renner
    entrepreneur7
     
    entrepreneur7, Aug 5, 2005 IP
  5. Sportscapper Island

    Sportscapper Island Peon

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Sweet Thanks, I figured it out. Whoever has php enabled on their site can make a header.txt and footer.txt file and put what you want in them then put these codes in where you want them to appear on your pages.

    <? include("footer.txt")?>

    <? include("header.txt")?>

    as easy as that:)

    Man Im happy:D
     
    Sportscapper Island, Aug 5, 2005 IP
  6. CompressedAir

    CompressedAir Peon

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yep, that's exactly what you should do if you are using PHP :)
     
    CompressedAir, Aug 5, 2005 IP
  7. Steve MacLellan

    Steve MacLellan Peon

    Messages:
    29
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You probably have thought of this, but don't include the title elements or the meta tags as part of the header if you will be promoting to the search engines.

    Best Regards,
    Steve MacLellan
     
    Steve MacLellan, Aug 5, 2005 IP
  8. Sportscapper Island

    Sportscapper Island Peon

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yep, thanks Steve, I didn't put the title or the meta tags in the header.txt.
     
    Sportscapper Island, Aug 5, 2005 IP