Removing classic-themes.min.css from WordPress

Since WordPress version 6.1, the classic theme has included a “wp-block-button__link” CSS class that has been breaking many WordPress website’s buttons. 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 theme’s functions.php file to fix your website’s buttons.

Removing classic-themes.min.css

Add the following line to your theme’s functions.php file:


remove_action( 'wp_enqueue_scripts', 'wp_enqueue_classic_theme_styles' );

Share via
Copy link
Powered by Social Snap