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.

Image ‘cover’ does not really work

  • In all page builders, when choosing image style ‘cover’, the image fills the given size by cropping the image, without distortion. In GenerateBlocks (pro) whatever I do, the given image px sizes are not respected. It’s nearly impossible to create a few identical columns with different images; vertical alignment is right now only possible when using images with exactly the same sizes. That’s not how builders use the ‘cover’ instruction and rather useless.
    But really strange: GenerateBlocks is using ‘cover’ in the ‘normal way’ with other blocks!
    If we are using a GenerateBlocks container in stead of an image block, and giving it a background image, with the same px sizes we tried in de imageblock and selecting ‘cover’: it all works as it should be.
    I know now we can accomplish a ‘normal’ cover image by ignoring the image block and using a container, but is a bit strange and should not be like that. And a certain function, like ‘cover’, should work the same among different blocks.

  • Hi there,

    Are you referring to the background-size property?

    If so that’s simply a CSS property and GB does not decide how it works:
    https://developer.mozilla.org/en-US/docs/Web/CSS/background-size

    All of GB’s options are simply CSS properties – GB writes the CSS for you when the option is chosen and cannot decide how the property works.

    If you can link us to the page in question and an example of what you are trying to achieve then we might be able to provide some guidance.

  • No. It’s about the image block.
    please read carefully.

    1) With image block + Cover: the sizes are NOT respected (this is not normal)
    2) With Container block background + Cover: the sizes are respected (as it should be)

    So the issue we have is with the Image block
    (the container block works perfectly).

  • Hi there,

    GB image block doesn’t have a Cover option, do you mean the object-cover option?

    If so, it’s not the same feature as the background image, they are completely 2 different CSS properties.

    For more details, please check:

    background-size:https://developer.mozilla.org/en-US/docs/Web/CSS/background-size
    objct-fit: https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit

  • This a screenshot of your GB interface.

    https://www.dropbox.com/s/i8typhi2agtsrgz/Scherm%C2%ADafbeelding%202023-05-04%20om%2023.36.31.png?dl=0

    I Just mean that the cover function of the image block does not work well.
    I tested around 15 builders in the last 2 months. All image blocs of all builders work well. That doesn’t mean it are good builders, but at least that css function works well.

    see the screenshot.

  • GB’s object-fit:cover function is working well, as I said object-fit:cover is NOT background-size:cover.

    They are different.

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