Skip to:
Content
Pages
Categories
Search
Top
Bottom

Full width forum bbpress.php


  • mestregd
    Participant

    @mestregd

    Hello guys,
    I have already taken the necessary steps to leave the full width of the forum across the screen, but even after putting bbpress.php inside my child theme, the space between of the sidebar and the forum is not in full width


    i need help pls

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

  • mestregd
    Participant

    @mestregd

    any help pls?


    u_Oi
    Participant

    @arutam

    Try this code. Put it on the function.php

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

    You don’t say if You want the full-width to all pages or only to topics, forums, or profiles.

    Regards,

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