classic-themes.min.css file is enqueued via wp_enqueue_classic_theme_styles() function in wp-includes/script-loader.php with classic-theme-styles handle.
Hi, how can I remove classic-themes.css completely? It takes 260ms and is render blocking. this is what I see in dev tools:
SOV from the 70's and 80's on DVD
I'm curious what the purpose of this file is and if removing it will interfere with functionality going forward? As it stands it's a file that 404's and I don't ...
I only want to see my own styles in the frontend, so i'm dequeueing WP Styles like this: function disable_gutenberg_wp_enqueue_scripts() { ...
Here's a quick fix for everyone to use that will allow you to dequeue classic-themes.min.css. All you need to do is add the below line to your ...
After upgrading to WordPress 6.1, a core stylesheet called classic-theme-styles with url wp-includes/css/classic-themes.min.css has been added.
If you are like me and you are using classic editor everywhere and this bloating annoys you, you can remove it, by adding this to your theme function.php file:
You can remove Gutenberg CSS by using the PHP below to dequeue the “/wp-includes/css/dist/block-library/style.min.css” file.
The easiest way to resolve the “Reduce unused CSS” warning is to enable the “Remove Unused CSS” feature in Perfmatters, which does everything automatically.
Note that /wp-includes/css/classic-themes.min.css?ver=1 is enqueued; Add a super basic theme.json (I used the contents below); Refresh page ...