Image elements do not have explicit width and height


Good day,

Can someone please help me, in page speed insight I get this message. I am trying to fix it, but not getting it right, can someone please assist me in where do i need to put the widht and height in. When i go into shopify to edit code, i get this message when i hover ove

You have to add that to img tag
In your screenshot, after data-src=“img_url”
You have to write as
width=“500” height=“500”
here 500 is the widget that you want to assign to the image

Thank you Pawankumar, it really helped and its fixed.

can you maybe assist me with this one aswell. i have tried diffrent places, but looks like i am not getting it right.

Put width and height before the alt text like above method and it should work