• Hi,

    Would it be possible to add the ability to choose a sidebar layout for bbPress pages?

    The theme works perfectly with bbPress as is (other than the persistent sidebar), and I don’t want to start copying templates to simply remove the sidebar on bbPress pages, as any subsequent updates to the main theme will then require manual intervention on my part!

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Here is some CSS that will remove the sidebar on your bbpress pages, if that’s what you’re wanting to do.

    .bbpress .kad-sidebar {
        display: none;
    }
    
    .bbpress .main {
        width: 100%;
    }

    You’ll want to add this code to Appearance> Theme Options> Advanced Settings.

    Let me know if that works for you!

    Thread Starter ConfusedTA

    (@confusedta)

    Hi,

    That appears to work – it would be nice to see some additional bbPress specific settings in the theme options in the future, like there is for WooCommerce.

    Thanks!

    Also you can use a function in a child theme.

    add_filter('kadence_display_sidebar', 'bbpress_sidebar');
    
    function bbpress_sidebar($sidebar) {
      if(!class_exists('bbPress')){
        if (is_bbpress()) {
          return false;
        }
      }
      return $sidebar;
    }

    Kadence Themes

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘bbPress hide sidebar’ is closed to new replies.