Forum Moderators: not2easy
I have a menu with five different pages.
I have created this menu 5 times and inserted it into each page each time highlighting the 'active' tab to show which page the user is on.
You probable know what my issue is by now. Usually i use includes for menus however how do you set different active tabs on different pages but for one include?
Any help would be great as Im sure it's really simple.
<?php $page="page_id"; include('templates/nav.php')?> then reference your page variable from within nav.php to set the appropriate class.