Hello !
I try to optimize my website based on wordpress rockettheme (clarity).
I observed that width and height are missing. So I have an alerte with google pagespeed who tells " Image elements do not have explicit width and height " (CLS).
This problem appears also when I try with other theme from Rockettheme (
pagespeed.web.dev/report?url=https%3A%2F...s%2Fhorizon%2F&hl=fr
).
Could you tell me how to add specific width and height on images?
If you want a responsive tempalte then you should not specify fixed width and height dimensions on an IMG tag. So, ignore that warning.
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.