Site logo

[Support request] Set featured image size by screen width

Home Forums Support [Support request] Set featured image size by screen width

Home Forums Support Set featured image size by screen width

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1846231
    Paul

    Hi,

    How can I set the width and height of featured images by viewport size? If I set a height of 400px in the Customizer the image becomes to large on mobile. I’d like the featured image to be aesthetically correct on desktop, tablet, on mobile, and always be the same height dependent on viewport. So 400px looks right on desktop, where as 200-230px looks right on mobile. But the Customizer height setting is global.

    I saw this thread but couldn’t see the answer in there:
    https://generatepress.com/forums/topic/how-to-put-a-small-size-featured-image-on-mobile-posts-and-pages/#post-1826124

    Thanks for your help,
    Paul.

    #1846266
    David
    Staff
    Customer Support

    Hi there,

    by default images are responsive and will resize to fit the container they are placed inside. They should not be larger then the container unless some CSS has been applied to change that.

    Can you share a link to a post/page where i can see the issue ?

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