Advertisement
majeedraza

Storefront - Remove Gutenberg styles if using the classic ed

Aug 31st, 2019
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement