Archived topic
Image elements do not have explicit width and height - Mobile Only
3 replies · Started by Kumar on April 7, 2021
Hi David
https://generatepress.com/forums/topic/how-to-set-height-and-width-for-the-logo-image/#post-1563234
I used the above code which removes the error of "Image elements do not have explicit width and height"
but these changes my CLS from 0 to 0.398 on mobile.
Thanks
Kumar
Hi there,
Can you try disabling lazyload for all images?
Let us know how it goes.
Hi There,
I have disabled wp rocket lazyload image features.
Unfortunately, the CLS hasn't changed.
Regards
Kumar
Hi there,
in the code that adds the logo size attributes - change the width attribute to 208