Bob Dylan Bob Dylan - 25 days ago 9
HTML Question

Have a single menu on multiple pages?

So I have a website and I'm using a basic menu located at the top right corner of the screen. It's links are as follows:

| Home | Blog | Results | Pictures | Our Location |


Form time to time I need to add a new link to the menu or change where one of the links points to. This means that on every page that the menu exist I must manually change the link. Surely there is some way to have a master menu that is just put on every page.

Or am I dreaming?

Answer

Put the menu in a separate file and include it on the server side, either using a full-blown scripting language like PHP (one line) or using SSI.