Archived topic
Hide all featured images in posts
9 replies · Started by dale on June 12, 2017
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.
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 :)
Thank you!
No problem!
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?
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/
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.
I don't think this is possible...Will ask Tom to confirm!
Thanks.
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;
}