Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,005
- How-to & Troubleshooting
- 129,528
- Creating & Extending
- 25,790
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,783
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,170
-
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.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS