How it Works
HTML & CSS
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?
October 30, 2013, 7:27 pm
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
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.
November 2, 2013, 3:48 pm