How can I hide the right-sidebar with filters on the page where I show subcategoryes in woocommerce?
On the page where I show categoryes, the right-sidebar with filters is hiding.
This code I put in the function.php
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 'both-sidebars';
// Or else, set the regular layout
return $layout;
}