Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove Sidebar

Viewing 3 replies - 1 through 3 (of 3 total)

  • Robin W
    Moderator

    @robin-w

    you can add this function to your functions.php

    function disable_all_widgets( $sidebars_widgets ) {       
        if ( function_exists('is_bbpress') ) {
            if (is_bbpress()) {
                $sidebars_widgets = array(false);
                remove_all_actions('bp_register_widgets');
                unregister_sidebar( 'bp_core_widgets' );
            }
        }
        return $sidebars_widgets;
    }
    
    add_filter('sidebars_widgets', 'disable_all_widgets', 1, 1);

    or this to your style.css

    .bbPress #primary {
    display: none;
    }

    Stig Ove Voll
    Participant

    @stig-ove-voll

    This solution didn’t solve the problem at all. All it did was hiding the widgets in the sidebar, and I want to remove the entire sidebar.


    Robin W
    Moderator

    @robin-w

    ok, try this – I have culled it from varous other posts, in particular

    http://bbpress.org/forums/topic/full-width-forum-2/

    Don’t swear it will work, but give it a go

    1. Create a page called “forums”,
    2. make this page a full width page – if your theme doesn’t support this, then you’ll need to create a child theme and add a full page template.
    3. Put this shortcode on the page [bbp-forum-index]
    4. edit the following file
    wp-content/plugins/bbpress/templates/default/css/bbpress.css
    by removing the left float from div.bbp-breadcrumb(line 405)
    5. In your style.css add the following

    .bbPress #primary {
    display: none;
    }
    .bbp-forums {
    width: 100%;
    }

    let us know if that works

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.