Cyber Week Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

Reply To: No sidebar on product page

Home Forums Support No sidebar on product page Reply To: No sidebar on product page

#185384
Tom
Lead Developer
Lead Developer

You could try..

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() && ! is_single() )
 	 	return 'both-left';

 	// Or else, set the regular layout
 	return $layout;

 }