[Resolved] Blog post featured image thumbnail size

Home Forums Support [Resolved] Blog post featured image thumbnail size

Home Forums Support Blog post featured image thumbnail size

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #326833
    dale

    Is it possible to set a mximum width and height on post thumbnails that appear on the blog page, as opposed to an exact width and height? I’d like the max width to be 300 and the max height to be 200, but entering those numbers in the blog featured image area of the customizer crops the images instead of resizing them proportionally.

    #326869
    Leo
    Staff
    Customer Support

    Hi Dale,

    I don’t think you can set a max condition on both width and height for responsive issue and I’m not sure if that makes sense as both condition has to be satisfied..

    I would recommend setting either width or height in the customizer and leave the other blank then it will be scaled automatically.

    Let me know if this helps.

    #326887
    Tom
    Lead Developer
    Lead Developer

    Yea, you’d have to do one or other (or else you’d be messing up the image without cropping it).

    Width:

    .post-image img {
        max-width: 300px;
    }

    Height:

    .post-image img {
        height: 200px;
        width: auto;
    }
    #326901
    dale

    Thank you!

    #326912
    Leo
    Staff
    Customer Support

    Glad we could help!

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