Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #956401

    I wanted to set the max height for the featured image on my blog posts to 300px.

    After reading a number of support threads about setting the featured image height I installed the “Simple Image Sizes” addon and changed the entry_with_sidebar size max height to 300 with cropping set to yes.

    I uploaded an image that is only 300px tall but the featured image size is double that once the post is published.

    It seems to work ok when it’s a wide image, but narrower images are not displaying properly.

    #956769
    #956810

    Hi,

    Please try the following in Quick CSS under Enfold->General Styling:

    .big-preview.single-big img {
        max-height: 300px !important;
    }

    Best regards,
    Rikard

    #956812

    Thanks Rikard

    That did fix the height but then the image was stretched across the full width out of proportion.

    I tried adding width: auto but that just took me back to the original issue.

    Can I set the image to be kept in proportion?

    BTW I did regenerate the thumbnails.

    Thanks

    #956838

    Ok I worked it out…

    .big-preview.single-big img {max-height: 300px !important; width: auto !important;}

    Thanks!

    #957302

    Hi,

    Great, glad you found a solution and thanks for sharing. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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