Home / Admin / Remove Gutenberg Block CSS
Duplicate Snippet

Embed Snippet on Your Site

Remove Gutenberg Block CSS

Remove Gutenberg Block Library CSS from loading on the frontend

Code Preview
php
<?php
//Remove Gutenberg Block Library CSS from loading on the frontend
function smartwp_remove_wp_block_library_css(){
 wp_dequeue_style( 'wp-block-library' );
 wp_dequeue_style( 'wp-block-library-theme' );
}
add_action( 'wp_enqueue_scripts', 'smartwp_remove_wp_block_library_css' );

Comments

Add a Comment