SHARE
TWEET

Untitled

a guest Dec 9th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_action( 'wp_print_styles', 'lit_deregister_editor_styles', 100 );
  2. /**
  3.  * Removes WP block editor styles
  4.  */
  5. function lit_deregister_editor_styles() {
  6.    
  7.     if ( !is_singular('post') ) { // If isn't a single post, remove access block libary CSS
  8.         wp_dequeue_style( 'wp-block-library' );
  9.       }
  10.    
  11. }
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
 
Top