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;
}
Thanks!