Is there anyway I can get it so all my pages get all their head info from a separate page? I have my CSS and codes, and It's annoying to add and remove stuff from every page.
Thanks for the help.
Is there anyway I can get it so all my pages get all their head info from a separate page? I have my CSS and codes, and It's annoying to add and remove stuff from every page.
Thanks for the help.
You'd have to use a server-side language like PHP. You're not too clear on exactly what you want to do, so I can't help you more. Do you want the
information to be the same on all the pages, or do you want certain things to vary?-NC
if your using dreamweaver or m$ expressions you can make templates, its makes your selected html/php files copy the template (.dwt) on every load, so if you want to make alterations to every head, you only have to change one file..
google for more info
...I have my CSS and codes, and It's annoying to add and remove stuff from every page...
...also, you shouldnt have the same CSS on every html page, just write a css page and link each html/php page to it
if you use textmate you can use tab triggers to come up with a page template in 5 seconds and tab down through everything (title, css name/location, body id, etc). not exactly what you're looking for, but similar enough to be worth posting ![]()
I use Dreamweaver. Basically, If I install a code for my pages that requires head info, its annoying to go put it on all my 25+ pages.
Also, why cant I have the same CSS for all my pages? It would be silly to make 25+ for each page. They all have my info I need in it, like header bar and footer bar, my images hovering here and there, etc.
Edit: I think you were thinking I have
But with this DWT, would that mean I would have to open every page and save it again to inflict changes?
if your web server has php (which it should unless you're running it on your computer (shouldn't be)) then you can do a php include.
<?php include('the_location_of_your_file.whateverextension'); ?>
To be honest, you shouldn't need this. If you're coding your CSS properly, you should be able to do one big file with sitewide CSS in it (the same sort of stuff for every page), and then smaller files for sub sections. If you don't want to retype your HEAD every time, do what I always do. Design your website in whatever program, rebuild it using XHTML and CSS (or whatever languages you use), and use that as a template. Just copy and paste it in your site directory, and change the file name to whatever your new page will be. Then edit it.
To be honest, you shouldn't need this. If you're coding your CSS properly, you should be able to do one big file with sitewide CSS in it (the same sort of stuff for every page), and then smaller files for sub sections. If you don't want to retype your HEAD every time, do what I always do. Design your website in whatever program, rebuild it using XHTML and CSS (or whatever languages you use), and use that as a template. Just copy and paste it in your site directory, and change the file name to whatever your new page will be. Then edit it.
Now say I have something I want to add to the head page. I have to go back and add it to every page.
Now say I have something I want to add to the head page. I have to go back and add it to every page.
What application are you using to make your website? In Dreamweaver, I just select "Find and Replace" from the Edit menu, select the Source as my website's directory, and type in all necessary information. It then goes, finds, and adds anything I need to all of the pages.