This assumes your web server has php installed.
Put your main navigation into a text file. Name it main_nav.php . There should not be anything else in this file. For example:
Code:
<div class="clearfix" id="nav">
<ul>
<li id="t-home"><a href="/index.php">Home</a></li>
<li id="t-practice"><a href="/practice_areas.php">Practice Areas</a></li>
<li id="t-about"><a href="/about.php">About</a></li>
<li id="t-fees"><a href="/legal_fees.php">Legal Fees</a></li>
<li id="t-contact"><a href="/contact.php">Contact</a></li>
<!-- <li id="t-blog"><a href="/blog/">Blog</a></li> -->
</ul>
</div> <!-- end nav -->
Then in the HTML for each page, put this where ever you want the main nav to appear:
Code:
<?php
include ("main_nav.php");
?>
Save you html files as "filename.php" .
Now whenever you change your main_nav.php file, the changes will display on every page where you have included the above php code.
You can expand this idea to the header and footer as well. So if your header or footer ever changes, you'll only have to make changes in one place.
If anyone is reading this that has not mastered this technique, you owe it to yourself to learn how to do it.
Good luck,
Jason
Bookmarks