[Resolved] How to dequeue featured-images.min.css file?

Home Forums Support [Resolved] How to dequeue featured-images.min.css file?

Home Forums Support How to dequeue featured-images.min.css file?

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2332200
    Kev

    Hopefully this is a simple one – I don’t use featured images anywhere on the front end of my theme, so I’d like to dequeue the featured-images.min.css file.

    I assume it’s easily done in functions.php, but I’m not sure how.

    Thanks,

    Kev

    #2332201
    Kev

    Enabling reply notifications, please ignore this comment…

    #2332630
    Ying
    Staff
    Customer Support
    #2332941
    Kev

    Can’t get it to work. I’ve tried the following, but it’s still loading the stylesheet:

    
    // Remove some of GP's stylesheets
    add_action( 'wp_enqueue_style', function() {
        wp_dequeue_style( 'generate-blog-images' );
    } );
    
    #2333021
    David
    Staff
    Customer Support

    Hi there,

    1 Enable the Blog Module.
    2.Go to Customizer > Layout > Blog –> Featured images, in Archives, Posts and Pages tabs, uncheck the Display Featured Images.

    #2333202
    Kev

    Thanks David. Would doing that remove the meta entries in the header too? I’d still like to have them in there for social media etc. i just don’t display them in the front end.

    #2333286
    David
    Staff
    Customer Support

    I assume you’re using an SEO plugin to add those meta tags ( as the Theme doesn’t ).
    So; No, disabling the featured image display won’t affect them. It will only remove them from the front end.

    #2333294
    Kev

    That worked perfectly. Thanks, David.

    #2333295
    Kev

    Marking resolved.

    #2333298
    David
    Staff
    Customer Support

    Glad to hear that !

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