child theme woocommerce css
-
I want to replace the storefront version of woocommerce.css with one in my child theme. The documentation describes three ways to dequeue storefront woocommerce styles but none of them work for me. I tried:
add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' ); add_filter( 'woocommerce_enqueue_styles', 'jk_dequeue_styles' ); function jk_dequeue_styles( $enqueue_styles ) { unset( $enqueue_styles['woocommerce-general'] ); return $enqueue_styles; } add_filter( 'woocommerce_enqueue_styles', '__return_false' );I also tried it the WordPress way with:
wp_dequeue_style( 'storefront-woocommerce-style' );but the file themes/storefront/assets/sass/woocommerce/woocommerce.css is still loaded.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘child theme woocommerce css’ is closed to new replies.
