[Resolved] hide featured image in single post

Home Forums Support [Resolved] hide featured image in single post

Home Forums Support hide featured image in single post

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #39477
    Carlotta Gergely

    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

    #39607
    Tom
    Lead Developer
    Lead Developer

    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;
    }
    #39854
    Carlotta Gergely

    Thank you, Tom, works fine

    #73096
    Daryl

    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

    #73250
    Tom
    Lead Developer
    Lead Developer

    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! πŸ™‚

    #183194
    Daniel

    is this still current, because it doesn’t seem to work anymore! Thx!

    #183226
    Tom
    Lead Developer
    Lead Developer

    Yes, this should still work.

    Can you link me to a single post where the page header is showing?

    #183371
    Daniel
    #183464
    Tom
    Lead Developer
    Lead Developer

    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?

    #183993
    Daniel

    Adding it using the custom CSS plugin πŸ™‚

    #184095
    Tom
    Lead Developer
    Lead Developer

    Looks like it’s working now πŸ™‚

    #217681
    tobymiguel

    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

    #217701
    Tom
    Lead Developer
    Lead Developer

    Thanks for the push! I just added this to GP Premium 1.2.90 πŸ™‚

    #217878
    tobymiguel

    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?

    #217908
    Tom
    Lead Developer
    Lead Developer

    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.

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