[Support request] Image elements do not have explicit width and height – Mobile Only

Home Forums Support [Support request] Image elements do not have explicit width and height – Mobile Only

Home Forums Support Image elements do not have explicit width and height – Mobile Only

  • This topic has 3 replies, 3 voices, and was last updated 3 years ago by David.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1724590
    Kumar

    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

    #1725642
    Elvin
    Staff
    Customer Support

    Hi there,

    Can you try disabling lazyload for all images?

    Let us know how it goes.

    #1725788
    Kumar

    Hi There,

    I have disabled wp rocket lazyload image features.

    Unfortunately, the CLS hasn’t changed.

    Regards
    Kumar

    #1725958
    David
    Staff
    Customer Support

    Hi there,

    in the code that adds the logo size attributes – change the width attribute to 208

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.