I have just updated my website <snip /> to include a CSS menu, with a separate file containing the CSS formatting etc. The next stage is to move the menu and heading into a separate file so that if I add a page, I only need to change the menu once.
The test page is /Template.html, which references /menu.html . I have followed guidance on this forum as regards the language. I have tried renaming the menu.html file to be .php (changing the code in main page), but this didn't work either.
As you can see from my history here, I am a novice and amateur with no real background in programming or web-design, so any help would be appreciated.
A good way to do this is with "PHP includes", which are very easy to do. Here's a rundown of it that I put together a while back: http://pageaffairs.com/notebook/enhance-your-site-with-php-includes
Great - followed the instructions, and it worked with the test page as a .php file instead of .html. I will now follow the instructions on how to make it work with the existing html pages using a .htaccess file.
Thanks for your help
This topic is now closed. New replies are no longer allowed.