Home / Disable / Remove Gutenberg Blocks Library CSS
Duplicate Snippet

Embed Snippet on Your Site

Remove Gutenberg Blocks Library CSS

Remove Gutenberg Block Library CSS from loading on the frontend

Code Preview
php
<?php
function adms_remove_wp_block_library_css(){
 wp_dequeue_style( 'wp-block-library' );
 wp_dequeue_style( 'wp-block-library-theme' );
 wp_dequeue_style( 'wc-blocks-style' ); // Remove WooCommerce block CSS
} 
add_action( 'wp_print_styles', 'adms_remove_wp_block_library_css', 100 );

Comments

Add a Comment