remove gutenberg styles

Solutions on MaxInterview for remove gutenberg styles by the best coders in the world

showing results for - "remove gutenberg styles"
Dylan
08 Jan 2018
1// Don't load Gutenberg-related stylesheets.
2add_action( 'wp_enqueue_scripts', 'remove_block_css', 100 );
3function remove_block_css() {
4wp_dequeue_style( 'wp-block-library' ); // WordPress core
5wp_dequeue_style( 'wp-block-library-theme' ); // WordPress core
6wp_dequeue_style( 'wc-block-style' ); // WooCommerce
7wp_dequeue_style( 'storefront-gutenberg-blocks' ); // Storefront theme
8}