Skip to content

Instantly share code, notes, and snippets.

@kaweski
Created October 14, 2016 14:01
Show Gist options
  • Save kaweski/12fdf8f0b836fea7cac64c3a59f71baf to your computer and use it in GitHub Desktop.
Save kaweski/12fdf8f0b836fea7cac64c3a59f71baf to your computer and use it in GitHub Desktop.
Retira o estilo padrão do Woocommerce
// 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