Around where you include your sidebar.php, try something like this: http://buddypress.pastebin.com/1KeQHxEx
I tried your solution in page.php
if (bp_is_blog_page()) {
get_sidebar();
}
My sidebar still appeared on all BP pages.
I discovered the problem: I’m using a widgetized theme, so dynamic_sidebar() is being used. Now I have to figure out where that is called to see if I can wrap that in a ‘if(bp_is_blog_page()){}’…
Resolved. My solution (in sidebar.php) has been amended to http://buddypress.pastebin.com/tkUDryN3
Thanks for pointing me in the right direction.
@caplain that worked like a charm for me, too. I run two sidebars and wrapped that to disable one of them on the bp pages. thanks!
You can also use the Widget Logic plugin with the conditional statements listed here: https://wordpress.org/support/topic/buddypress-and-widget-logic.
The easiest way to enact this is to exclude all component groups.