Home / Disable / Remove Gutenberg Blocks CSS
Duplicate Snippet

Embed Snippet on Your Site

Remove Gutenberg Blocks CSS

Code Preview
php
<?php
add_action( 'wp_enqueue_scripts', function () {
    wp_dequeue_style( 'wp-block-library' );
    wp_dequeue_style( 'wp-block-library-theme' );
    // Remove WooCommerce block CSS
    wp_dequeue_style( 'wc-blocks-style' );
 
    wp_dequeue_style( 'global-styles' );
 
    /**
     * @psalm-suppress UndefinedFunction
     */
    remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' );
} );

Comments

Add a Comment