-
-
Save Kaiderella/1a6991050f9c9e2399187d7ca69b458c to your computer and use it in GitHub Desktop.
Loại bỏ các file CSS cụ thể của WooCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_enqueue_styles', 'jk_dequeue_styles' ); | |
function jk_dequeue_styles( $enqueue_styles ) { | |
unset( $enqueue_styles['woocommerce-general'] ); // Remove woocommerce.css | |
unset( $enqueue_styles['woocommerce-layout'] ); // Remove woocommerce-layout.css | |
unset( $enqueue_styles['woocommerce-smallscreen'] ); // Remove the woocommerce-smallscreen.css | |
return $enqueue_styles; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment