Skip to:
Content
Pages
Categories
Search
Top
Bottom

Topics and Forums full-width


  • u_Oi
    Participant

    @arutam

    HI,

    I used to have this code in my forum to make it full-width.

    /* Hide SideBar in bbPress Profiles and Topics*/
    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);

    Is there a way to apply full-width only for Forums and Topics (opened)?

    Thanks,

  • You must be logged in to reply to this topic.
Skip to toolbar