I use the latest posts as my home page. I used the customizer to set the layout for Blog Sidebar Layout to Content (no sidebars) which is what I want for the home page.
For my archives and categories, I want the left sidebar to show. Since these aren’t technically “pages” I don’t see a way to edit to turn off global settings.
Hi Sharon. You could set the default layout to left sidebar, then use this function in your child theme functions.php file to remove the sidebar on your home page:
add_filter( 'generate_sidebar_layout','generate_custom_sidebar_layout' );
function generate_custom_sidebar_layout( $layout ) {
// If we are on the home page, no sidebar
if ( is_home() )
return 'no-sidebar';
// Or else, set the regular layout
return $layout;
}