[Support request] post thumbnail size problem

Home Forums Support [Support request] post thumbnail size problem

Home Forums Support post thumbnail size problem

  • This topic has 5 replies, 2 voices, and was last updated 4 years ago by David.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1228226
    horst

    dear generatepress theme,

    thank for this wonderful theme and your always great support.

    i have recently a problem regarding the post thumbnail sizes: i set them in the customizer -> layout -> blog to a size 500px / 240px. now it seems, that it has no effect to the generated thumbnail. even if i change the sizes in the customizer (and regenerate the thumbnails) the thumbnails wont have the right proportions.

    as you can also see, last year it worked perfectly. the new blog post seem to have this problem.

    thanks for your help!

    horst

    #1228264
    David
    Staff
    Customer Support

    Hi there,

    what happens if you set the Blog image width to 500 and leave the height as Auto.

    #1228303
    horst

    thanks david,

    for your fast reply!

    as you can see: the image width is large enough, but the height has different formats (landscape or portrait pictures).

    would you now set the height attribute with css?

    best, horst

    #1228305
    David
    Staff
    Customer Support

    Then add this CSS:

    .post-image img {
        height: 240px;
        -o-object-fit: cover;
           object-fit: cover;
    }

    GPP 1.11 – will have this built in 🙂

    #1228331
    horst

    perfect david,

    thank you, works like a charme. thank you for your help as always!

    best horst

    #1228335
    David
    Staff
    Customer Support

    Glad to be of help

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