Friday, June 3, 2011

How do you change a navigation bar links externally?

I have to change the number of navigation bar links on my website sometimes, and it's a major hassle to go to each page and do it. someone told me there is a way to do it externally, where you type in what you want in one place and it automatically goes to each page and makes the link changes. I use css but this is of no help when it comes to changing the content. What did they mean? any clue? How do I do this?How do you change a navigation bar links externally?Your site needs to have a server side language like PHP. And every file name needs to end with .php (not .html)



Next cut create a file in the root directory of your server named navigation.php in that file copy and paste the code from your navigation from one of the pages on your site.



Then go to each page of the site cut out that navigation code. and put this in its place. %26lt;? require_once(%26quot;/navigation.php%26quot;); ?%26gt; That will include the navigation on each page of the site. Then when you need to update it, just update the navigation.php file and all the other pages will pull it in.
  • pc won't boot window
  • pets
  •