Black Friday Sale! Get up to $30 off GP Premium! Learn more ➝

Reply To: Right Side Bar Woo Commerce

Home Forums Support Right Side Bar Woo Commerce Reply To: Right Side Bar Woo Commerce

Home Forums Support Right Side Bar Woo Commerce Reply To: Right Side Bar Woo Commerce

#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;

 }