Hello all,
I have recently added a CSS menu to slipperorchids.info and am running into a bit of a hurdle. I have to paste the HTML for the list the menu uses into each page on the site, which is around 100 atm. So every time I want to make a change to the menu, I have to paste new code to all 100 pages.
Is there any way to put the menu into a separate file and then place a single statement on each page that automatically imports the menu?
From googling, I thought this was possible using PHP. So I created a file titled menu.php with the list HTML in it and used the following statement to try to bring it in:
<?php include 'http://slipperorchids.info/menu.php'; ?>
However, this doesn't work and I believe it is because PHP can't be directly placed in an HTML document.
I know very little of PHP and CSS, so if anyone can help I would appreciate it.
Thanks,
--Stephen
I have recently added a CSS menu to slipperorchids.info and am running into a bit of a hurdle. I have to paste the HTML for the list the menu uses into each page on the site, which is around 100 atm. So every time I want to make a change to the menu, I have to paste new code to all 100 pages.
Is there any way to put the menu into a separate file and then place a single statement on each page that automatically imports the menu?
From googling, I thought this was possible using PHP. So I created a file titled menu.php with the list HTML in it and used the following statement to try to bring it in:
<?php include 'http://slipperorchids.info/menu.php'; ?>
However, this doesn't work and I believe it is because PHP can't be directly placed in an HTML document.
I know very little of PHP and CSS, so if anyone can help I would appreciate it.
Thanks,
--Stephen