I need to add explicit width and height to my image but cannot find the coding

Hello, my store is https://medusamassage.com I have the issue of “Image elements do not have explicit width and height” from page speed insights.
This is the following result:

I understand i need to add width and height inside the image tags but I cannot figure where to find the coding… I have searched through all css and js coding and cannot seem to find the tags for the photos.

Can anyone help with this?

Hello,

You should be looking into html/liquid templates that contains the HTML image element. For example, to edit the product page, depending on the template used, you’d probably need to edit product-template.liquid file.

To get started, try to add the width and height attribute to the html tag from your product page. An example of how the width and height CSS attribute would be, below


Cheers!