Site logo

[Resolved] Remove Classic-themes.css completely

Home Forums Support [Resolved] Remove Classic-themes.css completely

Home Forums Support Remove Classic-themes.css completely

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2419598
    Ivaylo

    Hi, how can I remove classic-themes.css completely? It takes 260ms and is render blocking.
    this is what I see in dev tools:
    <link rel=”stylesheet” id=”classic-theme-styles-css” href=”//www.domain.com/wp-includes/css/classic-themes.min.css?ver=1&ez_used_css_s=13″ media=”all” as=”style” onload=”this.onload=null;this.rel=’stylesheet'”>

    #2419605
    David
    Staff
    Customer Support

    Hi there,

    its a core stylesheet, try adding this PHP to remove it:

    
    add_action( 'wp_enqueue_scripts', function() {
        wp_dequeue_style( 'classic-theme-styles' );
    }, 20 );
    #2419659
    Ivaylo

    Thanks! Looks like it’s now removed! Great 5 star support from you as usual!

    #2420056
    David
    Staff
    Customer Support

    Glad to be of help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.