Home › Forums › Support › Right Side Bar Woo Commerce › Reply To: Right Side Bar Woo Commerce
May 12, 2015 at 8:39 am
#107413
Tom
Lead Developer
Lead Developer
This snippet should really work – if it doesn’t, can you send me temporary admin login details so I can see why?
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;
}