[Resolved] A way of setting the css of a nav item based on whether the current page is BP page?
Rather than having separate tabs for activity,members,groups and forums in my navigation bar, I have just one tab called ‘members’ which has a dropdown sub menu that handles the various Buddypress pages. What I would like to be able to do is to set the css of this single navigation tab depending on whether the current page is a Buddypress page, i.e highlighting it so that the user knows that they are in the members (Buddypress) area of the site. I am wondering then if there is a function for doing this, along the lines of:
if current page = Buddypress page, CSS of navigation item is….
- The topic ‘[Resolved] A way of setting the css of a nav item based on whether the current page is BP page?’ is closed to new replies.