SHARE
TWEET

Storefront - Remove Gutenberg styles if using the classic ed

lorro Aug 31st, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // Storefront - Remove Gutenberg styles if using the classic editor
  3. add_action( 'wp_print_styles', 'tc_dequeue_gutenberg', 100 );
  4. function tc_dequeue_gutenberg() {
  5.   wp_dequeue_style( 'wp-block-library' );
  6.   wp_dequeue_style( 'wp-block-library-theme' );
  7.   wp_dequeue_style( 'storefront-gutenberg-blocks' );
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top