This is a discussion on "Site Header Help" within the Web Page Design section. This forum, and the thread "Site Header Help are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Site Header Help
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Site Header Help
I designed my header for my site. However, I have tried and tried to have my pages referance it. How would I be able to use this header across all my pages with all the code intact and without actually putting it in all my pages? I've tried different inlucde functions but all I get is a blank page or refereance.
I am completely new to this. So a step by step would be great. Thanks. |
|
|
|
|||
|
Re: Site Header Help
Okay before you do anything.
Put all that css and javascript in external files. DONT include any <head> <body> etc tags in files that you want to include across multiple pages. Next create a blank index.php file with just the basic structure then in the body section put
|
|
|||
|
Re: Site Header Help
O.k. So I have the following:
menu.js
|
|
|||
|
Re: Site Header Help
and:
headss.css
|
|
|||
|
Re: Site Header Help
Your not understanding it
Put your css and js file in external files:
In these 2 files you would put all your css and javascript. Now in your navbar.html file should just be the table and div's Just this bit:
|
|
|||
|
Re: Site Header Help
Quote:
Quote:
|
|
|||
|
Re: Site Header Help
They go in your index file
And yes you need to make the .css and .js files |
|
|||
|
Re: Site Header Help
Thanks for bearing with me in this. I am getting some of this now.
I have stylesheet.css I have javascript.js I have index.php with:
|
|
|||
|
Re: Site Header Help
Ye theyre the same files, sorry about that.
In your index.php file have all the usual tags for html head body etc. Inside your body have
|
|
|||
|
Re: Site Header Help
works great. thanks for your help.
|
![]() |
| Tags |
| site, header, help |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Header help! | crackafaza | Graphics and 3D | 3 | Jan 23rd, 2008 11:37 |
| Help with Header | Ledpellet | Web Page Design | 11 | Dec 10th, 2006 07:56 |
| Header Help | eulB | Graphics and 3D | 5 | Jun 12th, 2006 22:21 |
| Please help, I need a new header(s) | mizbuffie | Graphics and 3D | 2 | May 22nd, 2006 04:04 |