Archived topic
hide featured image in single post
22 replies · Started by Carlotta Gergely on October 16, 2014
Hi Tom,
I was looking for a solution to hide the featured image in a post because
it takes a lot of space on top of the post.
But I couldn't find it in generate press theme. Is there any possibility
for this?
Thanks for feedback
Hi there,
It's on my list to add that option to the Customizer, but for now you have to use CSS.
This should do it:
.page-header-image-single {
display: none;
}
Thank you, Tom, works fine
Hey Tom,
Is this feature still on the "to do" list? I'd like to see it customizer for sure. What I'm trying to do is show thumbnail images during a list of posts (the featured image), and then when you are viewing the single post, the Featured Image is hidden so only the photos attached within the post itself are visible.
Finally, where do I insert the css for now?
Thanks!! Best theme on the nets!
Daryl
Here's the site we're using http://nrmg.org
Ah yes, this is still on the list - will add it to the next version.
There's a CSS plugin in my signature which you can use.
Nice site! :)
is this still current, because it doesn't seem to work anymore! Thx!
Yes, this should still work.
Can you link me to a single post where the page header is showing?
Of course, here - the images are still showing:
http://www.shensmithbarristers.co.uk/litigation/
http://www.shensmithbarristers.co.uk/regulatory/commercial-regulatory-investigations-prosecutions/
thanks!
The first link is a page, so that code won't work. However, you can just remove the image from the page if you don't want it there.
The second link is a post so it should work, but I'm not seeing the code added anywhere. How are you adding it?
Adding it using the custom CSS plugin :)
Looks like it's working now :)
Hi Tom
It would be nice to see this feature implemented to hide the featured image on single post.
Currently I am hiding it with CSS, but this doesn't mean it will not load. Having a big original image not resized loading in every post slows down the size, therefore it would be nice if there was a feature to stop it from loading at all. I have bought premium btw. and the features is not there as well.
Thanks for a nice overall theme btw
Thanks for the push! I just added this to GP Premium 1.2.90 :)
Hi Tom
That was quick! When will the update be available?
Another thing I discovered. I just put a size on featured images, in the customizer under blog options. I did this, so the site did not have to load the original image (typically > 1000px wide) to save on the Page size. My page size went down 50% after this, so it is a good choice.
However this destroyes the PageSpeed score, because it will tell me to serve scales images and specify the image dimensions. I use 2 collum layout with the first post being full width. Maybe the images in the collumns could have a width set like if you had not specified image dimensions in the blog options?
I wouldn't put too much weight on PageSpeed, it's not a great indicator (https://blog.wp-rocket.me/the-truth-about-google-pagespeed-insights/).
However, I'm working on a way to implement srcset into the resized images as well.