[Resolved] Hide all featured images in posts

Home Forums Support Hide all featured images in posts

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #332712
    Dale

    I’d like to never show featured images on a post page, but

    .single .thumbnail {display: none;}

    doesn’t seem to work?

    Thoughts?

    Just found the answer 🙂

    But as a suggestion for future updates, I’d love an option in Blog settings to hide featured images from single post pages as the default. If there was a way to override that on a post-specific basis, even better.

    GeneratePress 1.3.48
    GP Premium 1.3
    #332727
    Leo
    Staff
    Customer Support

    Hi there,

    The option you are looking for should be in Customizer > Layout > Page Header> Single Post Header Location > Hide.

    Hard one to find for sure it will get relocated soon 🙂

    #332921
    Dale

    Thank you!

    #332972
    Leo
    Staff
    Customer Support
    #333102
    Dale

    I should have asked, is there a way to override this on occasional posts with a check box, or would I use Simple CSS and !important if I want to achieve that?

    #333115
    Leo
    Staff
    Customer Support

    So you want it to be default hide but occasional show?

    Basically the opposite of Disable Element meta box? https://docs.generatepress.com/article/disable-elements-overview/

    #333186
    Dale

    Yes. Mostly because I moved a blog with more than 400 posts to a new site with WordPress. None of the posts had featured images, so I used a script to create featured images for each post from inserted images so that there will be a thumbnail for each post in the blog View. But that means showing the featured image on the post page results in duplicate images.

    So I want to hide the featured images in all of those imported posts. But for future posts it would be nice to be able to use featured images on occasion.

    #333197
    Leo
    Staff
    Customer Support

    I don’t think this is possible…Will ask Tom to confirm!

    #333205
    Dale

    Thanks.

    #333235
    Leo
    Staff
    Customer Support

    Actually on a second thought.

    Set your featured image to where you want it in the customizer, then hide it all with this CSS in global editor:

    .page-header-image-single {
        display: none;
    }

    Then on posts where you want to show, use this CSS:

    .page-header-image-single {
        display: block !important;
    }
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.