Results 1 to 4 of 4
May 5, 2012, 09:52 #1
- Join Date
- Feb 2010
- 0 Post(s)
- 0 Thread(s)
Need help with using selected class with includes...
I'm using PHP includes for my site and in the header include I have my main navigation - so it's drawn in to whatever page the user goes to from header.php.
I want to have a 'selected' <li> class for the navigation so the relevant button is highlighted depending on which page/section the user is on...
How would I go about implementing it into header.php - is there a way I can put a bit of PHP in each of the pages to make the appropiate <li> in header.php use the 'selected' class?
Thank you and I hope to hear from you.