Reply To: Hide sidebar in woocommerce search results page

Home Forums Support Hide sidebar in woocommerce search results page Reply To: Hide sidebar in woocommerce search results page

#165473
Tom
Lead Developer
Lead Developer

Ah, you may have to disable masonry for WooCommerce.

add_filter('generate_blog_masonry','generate_blog_woocommerce_masonry');
function generate_blog_woocommerce_masonry()
{
	// Disable in WooCommerce
	if ( is_woocommerce() )
		return 'false';

	// Check if blog
	if ( is_home() )
		return 'true';
	
        // Otherwise, disable it
	return 'false';
}

Let me know if that helps or not 🙂