I have an error in my code for product-testimonials.liquid that reads Missing width and height for attributes on img tag.
Can anyone advise on how to fix this please? Image attached on the code.
Many thanks!
Hey @Caroline83
Below loading="lazy" add these attributes and see if that solves out the problem.
width="500"
height="600"
Let me know!
Best,
Moeed
Well, you can try
width= {{ block.settings.image.width }}
height={{ block.settings.image.height }}
But ideally, you should rather use image_url and image_tag filters to output your <img> tags…