Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: [Resolved] A way of setting the css of a nav item based on whether the current page is BP page?

@rogercoathup

Participant

Have a look at some of the classes applied to body — there’s no single class being used for BuddyPress pages, but the set is quite small, and you should be able to base your selectors on them to capture whether you are on a BP page or not:

.directory …. , .my-account … , etc.

And, if you are using a pre-processor such as LESS or SASS, it makes it much easier to write nested CSS like this

Skip to toolbar