Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove sidebar


  • aborruso
    Participant

    @aborruso

    Hi all,
    I know that there are several post about it, but I’m not able to find a solution for my forum.
    It’s password proteceted and I cannot send you any link.

    – I have WordPress 3.9.1 and bbpress 2.5.4
    – I use Twenty Eleven (I know it’s a bad theme for bbpress)
    – I have copied the content of /wp-content/plugins/bbpress/templates/default folder in my theme folder
    – I have edited all the php files of my /wp-content/themes/mytheme/bbpress folder and commented “get_sidebar()” function
    – I have created forum.php and bbpress.php file starting from page.php template and commented “get_sidebar()” function

    But I have always the sidebar (below bbpress).

    If I use this code

    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);

    all the widgets disappear, but I have always meta links.

    I know I should change theme. Do you have some tips for this one?

    Thank you,

    Andrea

You must be logged in to reply to this topic.