Disable WooCommerce stylesheets on certain page types
-
Is it possible to disable WooCommerce stylesheets on the Shop (product archive) and single-product pages, while retaining the default WooCommerce stylesheets for the Woo pages Cart and Checkout?
I tried this (for the Shop page, as an example) in functions.php, but it does not seem to work:
function child_manage_woocommerce_css(){
if ( is_shop() )
{
add_filter( ‘woocommerce_enqueue_styles’, ‘__return_false’ );
}
}
add_action( ‘wp_enqueue_scripts’, ‘child_manage_woocommerce_css’ );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Disable WooCommerce stylesheets on certain page types’ is closed to new replies.