Support » Plugin: AMP for WP - Accelerated Mobile Pages » Auto adds height tag to images

  • All images with a defined width property on an image tag a height property appears get added to the amp page.

    Example:

    Non-AMP

    to

    AMP

    <amp-img src=”/example.png” width=”260″ height=””/>

    This is causing Google to report errors on amp pages for undefined height property on image tag.

    Can you look into this issue?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Resubmitting
    All images with a defined width property on an image tag a height property appears get added to the amp page.

    Example:

    Non-AMP

    <img src="/example.png" width="260"/>

    to

    AMP

    <amp-img src="/example.png" width="260" height=""/>

    This is causing Google to report errors on amp pages for undefined height property on image tag.

    Can you look into this issue?

    Plugin Contributor ampforwp

    (@ampforwp)

    Hi @jacobdg,

    Sorry for the inconvenience.

    May I know which version you’re using? Can you please share the exact URL where you’re getting this validation error? so that I can check and help you to resolve the issue.

    let us know

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Auto adds height tag to images’ is closed to new replies.