Skip to content

Instantly share code, notes, and snippets.

@wp-freund
Forked from jameskoster/functions.php
Last active August 29, 2015 14:22
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 wp-freund/9cb38b6a96f423ab42a4 to your computer and use it in GitHub Desktop.
Save wp-freund/9cb38b6a96f423ab42a4 to your computer and use it in GitHub Desktop.
// Remove each style one by one
add_filter( 'woocommerce_enqueue_styles', 'jk_dequeue_styles' );
function jk_dequeue_styles( $enqueue_styles ) {
unset( $enqueue_styles['woocommerce-general'] ); // Remove the gloss
unset( $enqueue_styles['woocommerce-layout'] ); // Remove the layout
unset( $enqueue_styles['woocommerce-smallscreen'] ); // Remove the smallscreen optimisation
return $enqueue_styles;
}
// Or just remove them all in one line
add_filter( 'woocommerce_enqueue_styles', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment