Dynamic Nav Highlighting
-
I’m generating my navigation bar using WordPress menus, and I was wondering if there is something I could add to my functions.php file that would check to see if I’m on a buddypress-related page; anything under activity, blogs, forums, groups, members, or registration. And then set my $current page to ‘clubhouse’ (which is the “social” area of my site)
I don’t know how to check if the page being called is from one of several directories. I know how to check for a specific page, but I need this to be dynamic. Currently no nav items are highlighted and I’d like the user to know where they are.
Is anything like this possible? Thanks in advance!
- The topic ‘Dynamic Nav Highlighting’ is closed to new replies.