Hi,
i used this snippet for remove sidebar in one woocommerce category.
function remove_sidebar_shop() {
if ( is_product_category('category-name') ) {
remove_action('woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
}
}
add_action('template_redirect', 'remove_sidebar_shop');
Now, in the “content-layout-wrapper” line, the “site-content” is in lg-9 and remain a empty space.
How can I set the “site-content” in lg-12? Or is it possible another way to disable the sidebar by shop category?
Thanks!