jasonhr13
-
Posts
1 -
Joined
-
Last visited
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
php include sub navigation selected
in HTML Help
Posted
ok so here is my issue. I have a navigation that is in top-nav.php and i want it the links to show as selected when im on the page for them. I use an if statement and this works for all the top level links. But when im on a page that is a sub menu(drop down item) of one of the main links i want that main link to show as selected....
for instance i have this below.. as you can see the second main link has a sub navigation. each php file has a $current_page = "pageName" in them. But when I do it this way which to me theoretically should work, it always stayed selected no matter what page in on....
for reference... http://a120900.sb1.dev.codeanywhere.net/thwebco/index.php