Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

I want to set the image that appears here to be 1200 x 630 in size.

  • <– Please check.

    <–Site shown in screenshot

    I’ll give you the login information, so tell me what to do with a screenshot or video.

  • Can you tell me why? The size you want is way too big compared to the rendered size.

  • <– Please check

  • <– Please check.

  • Hi there,

    Instead of forcing the size, you can upload the image with its exact dimensions. The image is used in the GP Dynamic Image block, so it will display the original dimensions of the image.

  • Can’t I force it?

  • Hi there,

    yes you can force ALL the images to have the same aspect ratio.
    For example this CSS will do that:

    
    body:not(.single) .dynamic-content-template  img {
        aspect-ratio: 1.9 / 1;
        object-fit: cover;
    }
    

    But there are issues:

    i) the browser may not choose the best sized image which will effect performance
    ii) your first image will be badly cropped.

    The simplest and best solution is for you to crop the image to the correct size before uploading.

  • Thank you so much. It’s resolved.

  • You’re welcome

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