Skip to content

Instantly share code, notes, and snippets.

@Kaiderella
Created May 15, 2020 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kaiderella/1a6991050f9c9e2399187d7ca69b458c to your computer and use it in GitHub Desktop.
Save Kaiderella/1a6991050f9c9e2399187d7ca69b458c to your computer and use it in GitHub Desktop.
Loại bỏ các file CSS cụ thể của WooCommerce
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