Change all pages at once ??

Associate
Joined
17 Oct 2009
Posts
2
Hello overyone,

I'm fairly new to web design and i was wondering if there is a way to change the content of a footer on every page of the website without having to go into each html file?

I can use CSS to style the pages, is there a way similar to this to enter the content that is common to all pages?

Thanks in advance guys :)
 
If you use PHP to include the footer into the page its possible.

For example, but all of your code for the footer in a file called "footer.html" then use
PHP:
<?php include('footer.html'); ?>
to insert the footer into the page.

If you do that for all of your pages, when you change the "footer.html" page, it will change across the site.
 
If your not using PHP, or your using ASP or normal static HTML then this is your other method. If it doesn't work from .htm/.html then try .shtm/.shtml or .asp

<!--#include virtual="/directory/included.html" -->

That is a proper HTML command. The previous example is PHP dependant.
 
Back
Top Bottom