Last active
October 7, 2021 14:01
-
-
Save itsHall/42ae8c2551c4f34540e54757aae11bde to your computer and use it in GitHub Desktop.
Remove Gutenberg Block Library CSS from loading on the frontend
This file contains 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
<?php | |
function mpc_remove_wp_block_library_css(){ | |
wp_dequeue_style( 'wp-block-library' ); | |
wp_dequeue_style( 'wp-block-library-theme' ); | |
wp_dequeue_style( 'wc-block-style' ); // Remove WooCommerce block CSS | |
} | |
add_action( 'wp_enqueue_scripts', 'mpc_remove_wp_block_library_css', 100 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment