Home / Remove WP Block Library CSS
Duplicate Snippet

Embed Snippet on Your Site

Remove WP Block Library CSS

Stop WordPress from loading the block editor CSS - especially useful if you don't use Gutenberg.

500+
Code Preview
php
<?php
add_action( 'wp_enqueue_scripts', function() {
	wp_dequeue_style( 'wp-block-library' );
	wp_dequeue_style( 'wp-block-library-theme' );
}, 110 );

Comments

Add a Comment