Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 12:02:14 PM

Pages: [1]   Go Down
  Print  
Author Topic: Header Help  (Read 871 times)
weezypops
Spacescooter Operator
*****
Offline Offline

Posts: 45


« on: October 03, 2009, 12:41:34 PM »

At the moment my header has two ads either side of the logo. I get new ads on the site every month and at the moment I'm having to go into each page of the website and change the whole header before uploading all the new pages when they need updating. At the moment this isn't a big problem because there aren't many pages. However as I add more it will become quite a chore.

I know in the forum I use there is an 'overall header' file which I update and it means the header shows automatically on each page without me having to do anything else. Is there a way I can do this with the normal website too?

I use Kompozer to build the site and am still getting used to it all so please keep it simple!

Thanks!

Oh, the site is www.essexmums.org
Logged
webweaver
Galactic Royalty
*****
Offline Offline

Posts: 206


WWW
« Reply #1 on: October 03, 2009, 01:15:01 PM »

Here is what I did with my side menus and my footer:

Create a file for just your header and save it as header.html.  This file does not need all that doc type information that we have at the top of our pages.  Make sure your header.html displays correctly as you want it, then put this in your web page where you want the header to go. : <!--#include file="header.html"--> You will have to edit all your web pages this one time to include that line, but from then on, you can just edit that one header file and then each page will go get it each time it loads. Be sure to take out the header information you already have in your pages.

For this to work you need to put a line in your htaccess file to parse the .html pages as .shtml.  I think my wording in mine looks something like this:

AddHandler server-parsed .html
  AddType    text/html     html

Webweaver



Logged
weezypops
Spacescooter Operator
*****
Offline Offline

Posts: 45


« Reply #2 on: October 03, 2009, 02:59:56 PM »

Thank you so much! That was really straightforward. Wonderful stuff!
Logged
bryantrv
Guest
« Reply #3 on: October 03, 2009, 03:20:14 PM »

That's exactly what I do, though I do a header, footer, right and left sidebars. I used the css template from http://www.ssi-developer.net/main/templates/3col.shtml - the Three Column Pixel-Perfect with Header & Footer at the bottom of the page.
It saves a *ton* of work- changing menus, copyright dates, and ads site wide.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: