• Resolved ashikai

    (@ashikai)


    I have a very strange issue with the Product Grid block (by category). While it seems to work fine, 9/10 of the images are displayed as a srcset, but the remaining one is not. I tried to patch it up with some CSS but because of the way the grid works, I can’t really do it efficiently.

    I don’t know what triggers this. I’ve tried re-generating thumbnails, re-uploading images under new file names, clearing cache and nothing seems to fix this one issue.

    Any ideas on what might be causing this?

Viewing 1 replies (of 1 total)
  • Thread Starter ashikai

    (@ashikai)

    Ok, so the issue has been resolved after a lot of testing.

    In case anyone else runs into this issue – it was caused by one of the images not being large enough to generate a srcset. I uploaded a larger(dimensions) file and the srcset generated just fine. Not sure if there’s a way to add some kind of fallback, but this is what worked for me.

Viewing 1 replies (of 1 total)
  • The topic ‘Product Block image don’t always use srcset’ is closed to new replies.