Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove Sidebar

Viewing 11 replies - 1 through 11 (of 11 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

    Full-Width Forum

    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


    Vadim
    Participant

    @vadim-v

    Tell WP 4.0 bbPress 2.5.4

    how to disable the sidebar on the forum page?
    You can configure the plugin to add the ability to enable or disable the sidebar?


    Robin W
    Moderator

    @robin-w


    Vadim
    Participant

    @vadim-v

    Thanks for the link!

    Long read only the third time realized.

    Step by step:

    1 Find in your site template page with no sidebar.
    2 Make a copy of it.
    3 Rename the page to bbpress.php


    Robin W
    Moderator

    @robin-w

    great – glad you’re fixed !


    Robin W
    Moderator

    @robin-w

    There is an issue with wp4.0 and default permalinks.

    This gives 404 errors with sub forums for users with default permalinks. This is due to a bug in wp4.0, and netweb is on the case to get this fixed in 4.0.1

    There are 3 workarounds

    1. Change your permalinks to any of the other settings

    Dashboard>settings>permalinks

    The most often used is ‘postname’

    This will not only fix your issue, but make your links look prettier. However if you have links to your site forums from other sites/emails, these links might break (ie they will come up as 404 errors), but if your choice is between users not accessing, or users complaining that the link in that old email no longer works, then resetting might seem a good idea.

    2. revert to 3.9.2

    see

    for quite a good video on how to do it

    3. Move your sub-forums up a level ie make them all main forums

    and keep monitoring this site for a solution.


    Vadim
    Participant

    @vadim-v

    Thank you said! When I installed the site, I wrote the default /%postname%/


    Mael Shanti
    Participant

    @mael-shanti

    Hi ! I didn’t really managed to remove sidebar nicely… :/
    So I created a new support topic : https://bbpress.org/forums/topic/make-the-forum-pages-full-width/
    Thanks for helping !


    Jose Barcelona web
    Participant

    @josealama9

    Thanks for the clarifications, now I see it on one of my websites as I was looking.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.
Skip to toolbar