• Resolved holliate

    (@holliate)


    add_filter( 'sidebars_widgets', 'disable_all_widgets' );
    
    function disable_all_widgets( $sidebars_widgets ) {
    
    	if ( is_single() )
    		$sidebars_widgets = array( false );
    
    	return $sidebars_widgets;
    }

    works to remove sidebars from posts, but content width is still restrained to the same parameters as if sidebar was still visible. how do I fix this?

    link to a post from website

    • This topic was modified 7 years, 2 months ago by holliate.
  • The topic ‘Remove widgets on post, keep content 100%’ is closed to new replies.