Tagged: Buddypress, enfold, sidebar, widget area
Hi,
I would like to use a custom sidebar on the Buddypress pages. I found this topic on your forum: https://kriesi.at/support/topic/buddypress-sidebar/
I have the same problem (https://kriesi.at/support/topic/buddypress-sidebar/#post-380594). I insert the code in sidebar.php and my sidebar is gone as well as the footer.
images here: http://1drv.ms/1OWUM2d
I created the widget area that has the same name of the custom sidebar in code: “special”.
Any idea?
Thanks
Hi again,
I just changed this :
if ( bp_is_activity() || bp_is_blogs() || bp_is_messages() || bp_is_friends() || bp_is_groups() ) { $custom_sidebar = "special"; }
into this :
if ( bp_current_component() ) { $custom_sidebar = "special"; }
according to this post: http://wordpress.stackexchange.com/questions/577/how-can-i-detect-whether-a-buddypress-page-is-active-from-within-my-theme
and it works now.
Riccardo