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.

Erratic display of image in loop

  • Hi, sometimes images are not displaying in a product loop. I am using: {{featured_image key:url}}

    I assume as the image is empty, it does not display on the frontend.

    I have tested that the image thumbnails are regenerated an existing.

  • Hi there,

    I checked the query block on the page you linked; however, the image does not look like inserted with GB’s image block, but a WP block.

    Let me know if I miss anything!

  • This is the code for the block used:

    <!-- wp:generateblocks/media {"uniqueId":"a1df5f7a","tagName":"img","htmlAttributes":{"src":"{{featured_image size:product|key:url}}","alt":"{{featured_image key:alt}}"},"className":"overlay__image-cropped"} -->
    <img class="overlay__image-cropped" src="{{featured_image size:product|key:url}}" alt="{{featured_image key:alt}}"/>
    <!-- /wp:generateblocks/media -->
  • I can not find the block you attached, I searched the id, nothing returned.

    This is what I see, the images are from the WP block.
    https://app.screencast.com/LS6jSsTFECg8N

  • The block is in a template part.

    Here’s how it’s being used: https://postimg.cc/r0t0QS6d

  • Can you remove the non-GB blocks in the query block so I can see it more clearly?

    Just to be sure, the section in your screenshot is this one on homepage?
    https://app.screencast.com/jUhC5jryvyPGT

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