Created
February 19, 2026 08:41
-
-
Save esedic/e8a479cec159da0dee0a2d8a9d2a7692 to your computer and use it in GitHub Desktop.
Remove WordPress Gutenberg Block Library CSS from loading on the frontend
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment