Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Converting theme, how to load BuddyPress stuff on BuddyPress pages only?


r-a-y
Keymaster

@r-a-y

I only tested the current_component on one WP page… okay just tested with one post.

It returns a number if you’re on a WP post, so do a check for is_numeric.

global $bp;
if (is_front_page() || (isset($bp->current_component) && !is_numeric($bp->current_component)) ) {
YOUR BP CSS/JS here
}

This is untested… but give it a shot.

Skip to toolbar