Skip to content

Instantly share code, notes, and snippets.

@mikeyarce
Created May 19, 2017 15:28
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 mikeyarce/ed62faa16834613aaca9b48bb975dcfd to your computer and use it in GitHub Desktop.
Save mikeyarce/ed62faa16834613aaca9b48bb975dcfd to your computer and use it in GitHub Desktop.
Remove woocommerce-smallscreen.css
// Don't add this opening PHP tag unless your file doesn't already have one
<?php
// Remove woocommerce-smallscreen.css
function marce-remove-woocommerce-smallscreen-css( $enqueue_styles ) {
unset( $enqueue_styles['woocommerce-smallscreen'] ); // Remove the smallscreen optimisation
return $enqueue_styles;
}
add_filter( 'woocommerce_enqueue_styles', 'marce-remove-woocommerce-smallscreen-css' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment