[Resolved] Disable right sidebar on Home page

Home Forums Support Disable right sidebar on Home page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #1160375
    Damiaan van Vliet

    Hi support, I want to disable the right sidebar on home page. I have tried the obvious filter within functions.css but apparently I do something wrong. Please see the site.
    You see two sidebars, one within BeaverBuilder and the sidebar at the far right I want to have disabled.
    I use:

    add_filter( 'generate_sidebar_layout','tu_custom_category_sidebar_layout' );
    function tu_custom_category_sidebar_layout( $layout )
     	// If we are on blog page, set the sidebar
     	if ( is_home() )
     	 	return 'no-sidebar';
     	// Or else, set the regular layout
     	return $layout;


    Customer Support

    Hi there,

    you would need to use the is_front_page() conditional tag instead of the is_home()

    Or alternatively you can use the Layout Element to disable the sidebar fro the Front page:


    Damiaan van Vliet

    Thanks David! Working.

    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.