Hi, for some reason the sidebar layout on the home page is not working.
I have woocommerce installed. So it is on the shop page.
I edit the page, sidebar/content.
I have filled the sidebar with widgets.
Don’t know what to do else.
With default theme no problem.
If the page is an index (blog page, main WooCommerce page), the meta box settings won’t apply. This is a WP limitation.
Instead, while looking at the page you want to edit, click the “Customize” button in the admin bar. Then go to “Layout > Sidebars” to adjust the layout.
/* hide sidebar on woocommerce pages */
add_filter( 'generate_sidebar_layout','generate_custom_woocommerce_sidebar_layout' );
function generate_custom_woocommerce_sidebar_layout( $layout )
{
// If we are on a woocommerce page, set the sidebar
if ( is_woocommerce() )
return 'no-sidebar';
// Or else, set the regular layout
return $layout;
}