Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,846
- How-to & Troubleshooting
- 129,872
- Creating & Extending
- 25,895
- Requests & Feedback
- 9,546
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,179
-
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.