CodeClerks

How can the menu be updated on multiple pages?



Write the reason you're deleting this FAQ

How can the menu be updated on multiple pages?

If I wanted to add or change a link on my menu system for my HTML site, how could I update it over numerous pages?

Comments

Please login or sign up to leave a comment

Join
Sysode
Rather than doing it manually, as that is just effort, you could use some basic PHP - which is what I use for my larger sites.

basically, create a new file and call it navi.php and place it in the root directory (or where your site is) and inside this file
you should add your entire navigation code.

now on each page you create from now on you want to "include" this file, you can achieve this by doing
[PHP]<?php include ('navi.php'); ?>[/PHP]
And place this code where you want your navigation to be.Which will then include your navi.php where it should be and you can easily update all of your sites navigation from one file.

Hope this helps.



Are you sure you want to delete this post?