In updating to WordPress 5.0.1 I noticed when examining my Sources from Chrome’s DevTools that a new file and directory were created, a stylesheet named style.min.css in a dist directory:
/wp-includes/css/dist/block-library
style.min.css
From research and memory there is wp_dequeue_style()
and I can do:
add_action('wp_print_styles',function() {
wp_dequeue_style('wp-block-library');
},100);
that removes the file from Source but I’m unsure on a custom theme if there are any adverse effects or another way to remove the file? Is there another way to remove Gutenberg CSS from WordPress 5.0.1 and if I dequeue will that cause any problems?
Here are some Github issues I found when searching:
- How to remove gutenberg CSS
- Column Block CSS Media Query