Support » Theme: GeneratePress » Size of post image

  • mahatmagianna

    (@mahatmagianna)


    Hello,

    I migrated from a different theme to GeneratePress.

    Unfortunately, the post images are all in different sizes now in the preview of the article (see link)
    Is there a way to adjust the size of all the blog post images?

    thank you

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • David

    (@diggeddy)

    Hi there,

    to do that in the three theme is going to require some code.
    The simplest method is to add some CSS:

    /* Set max size post image on desktop / tablet */
    @media(min-width: 760px) {
      body:not(.single) .post-image {
        max-width: 250px;
      }
    }
    /* Force post image full width on mobile */
    @media(max-width: 768px) {
      body:not(.single) .post-image img {
        width: 100%;
      }
    }
    Guido

    (@guido07111975)

    Hi David,

    Using the Regenerate Thumbnails plugin is not an option in this case?

    Guido

    Leo

    (@leohsiang)

    I don’t think that plugin will help.

    You can either use David’s code, or we also have the featured image resizer options in the premium plugin:
    https://docs.generatepress.com/article/adjusting-the-featured-images/

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