Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,047
- How-to & Troubleshooting
- 129,804
- Creating & Extending
- 25,879
- Requests & Feedback
- 9,501
- Third Party Plugins
- 9,814
- Showcase
- 3,317
- Ideas
- 1,382
- Miscellaneous
- 9,177
-
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.