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

Look at the current_component.

<?php global $bp;
if (isset($bp->current_component)) {
YOUR BP CSS/JS here
}
?>

The current_component should only return something if it is a BP page.

[EDIT]

Just checked the activity stream home page… it doesn’t return anything for that.

You’ll need to add a conditional for that as well.

Skip to toolbar