[Resolved] Blog: show featured image of latest post and hide images of older posts

Home Forums Support [Resolved] Blog: show featured image of latest post and hide images of older posts

Home Forums Support Blog: show featured image of latest post and hide images of older posts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1252899
    Sven

    Hi everyone,

    is there an easy solution to that case? On my blog page I’d like to show the featured image of my latest post, but not the featured images of any other posts…

    I appreciate your answer!

    Best regards and stay healthy,
    Sven

    #1253669
    Leo
    Staff
    Customer Support

    Hi there,

    It’s quite easy with CSS since you are using the featured post layout:

    .post:not(.featured-column) .post-image {
        display: none;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know if this helps πŸ™‚

    #1257566
    Sven

    That was easy! πŸ™‚
    Thank you…

    #1258254
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

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