I have started maintaining a site that someone else built. However I have stumbled across some problems.
The navigation/menu bar is in every html file, so if you want to change one link you have to change all the other 40 odd html files too. Now I can see this is a long winded way of doing it and don't want to spend 6 hours updating every bit of html when I could spend the 6 hours making it work better, i.e just having one file to update which updates all the other pages too. Now I know this is possible using php (I don't know any php) but how?
I would like to be able to do the same for the headers and footers to.
The navigation/menu bar also has drop down links and the colour changes on the menu bar when you click it?
What is the best way to go about doing this bearing in mind my knowledge is limted in html (I am fine at editing but not creating from scratch) and have no php knowledge. However I am willing to learn if I can find the time.
I started to have a go (forgetting about the drop down links for the moment) with the index page.
So I took the relevant navigation bar html from the index.html file and renamed it navigation.html
I then put this in the index.html file where the navigation html was.
<?php
include ("navigation.html");
?>
but it doesn't work. I have probably simplified it too much.
However can anyone help me do it properly with the drop down menus or point me in the right direction?
edit:- sorry should have said this is the site www.maestro.org.uk notice the menu on the left hand side which I would like to only have to update once.