Tagged: x
-
AuthorPosts
-
May 26, 2016 at 6:04 pm #1011911
Josiah WParticipantHow do I assign a sidebar to be used when a user is in buddy press or bbpress? I don’t want them to use the main sidebar that everything else uses. I see that I can assign the sidebar to a taxamony or to a page. I also don’t see an option in customization except:
Layout
*Use Global Content Layout
FullwidthMay 26, 2016 at 10:22 pm #1012313
Prasant RaiModeratorHello Josiah,
Thanks for writing in!
To add sidebar in bbpress please walk-through solution shared in following thread:
https://community.theme.co/forums/topic/add-a-custom-sidebar-to-bbpress-forums/#post-206346
Thanks.
May 27, 2016 at 1:16 pm #1013287
Josiah WParticipantThat worked great for bbpress. How do I do this for BuddyPress?
May 27, 2016 at 8:30 pm #1013806
RadModeratorHi there,
It’s the same, your customizer’s layout should have sidebar instead of full-width, then the code should be like this,
add_filter('ups_sidebar', 'force_buddypress_sidebar', 20); function force_buddypress_sidebar ( $sidebar ) { return x_is_buddypress() ? 'REPLACE_THIS_WITH_SIDEBAR_ID' : $sidebar; }And just change the ID with your custom sidebar’s ID.
Cheers!
May 29, 2016 at 2:40 pm #1015457
Josiah WParticipantPerfect. Thank you very much.
May 29, 2016 at 4:07 pm #1015517
RadModeratorYou’re welcome!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1011911 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
