hi how can i turn off the side bar on pages like this
https://www.stoveindustrysupplies.com/forums/topic/testing-123/
I saw a resolution here
Which yes its great for the some pages such as this one using the main shortcode [bbp-forum-index]
https://www.stoveindustrysupplies.com/forums/
But when a user then dives deeper and goes to each individual forum, so from the above page if they click on testing forum they are taken to
https://www.stoveindustrysupplies.com/forums/forum/testing-forum/
And boom the sidebar re appears… How can I get that off please
Hey codecreative,
I couldn’t see your site as it is in maintenance, but I have seen a similar issue where the solution was adding a function like this:
// Remove bbpress sidebar
function remove_bbpress_sidebar( $layout ) {
if ( is_bbpress() ) {
$layout = 'fullsize';
}
return $layout;
}
add_filter( 'avf_sidebar_position', 'remove_bbpress_sidebar', 20 );
Another option: https://kriesi.at/support/topic/remove-sidebar-from-bbpress-forum/#post-134451
Best regards,
Mike
Hi Mike
If you just add /preview to the url it will turn off the maintenance mode
I have tried to add that code but it failed to do anything :(
Hi,
Try adding this css code in Quick CSS (located in Enfold > General Styling):
#top.bbpress.single #main .sidebar {
display: none;
}
#top.bbpress.single #main main.template-page {
width: 100%;
border: 0;
}
Hope this helps :)
Best regards,
Nikko