• Resolved corboffour

    (@corboffour)


    Good Day,

    I have over 2500 pages using your wonderful plugin and I have a single AMP error on my home page.

    https://www.stealingshare.com

    The error is the implied layout ‘container’ is not supported by tag ‘amp-img’ for the “talking head” image on the page. Is there a way to fix this without creating a separate AMP only page?

    Further, I have images on loads of pages and am not having this issue. Any thoughts as to what is happening?

    Thanks in advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor ampforwp

    (@ampforwp)

    Hi @corboffour,

    Thank you so much for using our plugin.

    That error is due to attributes of the image. Try giving width and height to that image.

    Let me know if that helps or not.

    Regards
    Marqas

    Thread Starter corboffour

    (@corboffour)

    Thanks Marqas,

    The unfortunate part of your recommendation is that our site is responsive that uses DIVI.

    I don’t understand why in the thousands of images we have on our site (that do not have attributes) why this one in particular is an issue.

    Please advise. Thanks in advance!.

    Plugin Contributor ampforwp

    (@ampforwp)

    Hi @corboffour,

    Is this happening only on the homepage? or some other places as well?

    Thread Starter corboffour

    (@corboffour)

    Only on the home page. Other pages have multiple images and we have a couple of thousand pages.

    Plugin Contributor ampforwp

    (@ampforwp)

    Hi @corboffour,

    Ummm, That’s strange.

    May be homepage content is not fully getting sanitized. I have created a ticket about it in our Github. We will test it and will resolve it in our next updates.

    Till then, please do the following steps.
    Edit that frontpage-> Copy the whole content from text-> paste it in Custom AMP Editor of the same page(which is located at the bottom) and add the width and height of that image.
    It will resolve your problem.

    Let me know if that resolved the issue or not.

    Regards
    Marqas

    Thread Starter corboffour

    (@corboffour)

    Yeah, that was one of the things I tried. Unfortunately, since the site is built using DIVI simply copying the content is not an option. Even if I copy source from a browser I get a multitude of other amp errors.

    Not sure what to do about it.

    Plugin Contributor ampforwp

    (@ampforwp)

    Hi @corboffour,

    Copy the HTML from DIVI and past it in the text area of Custom AMP Editor and select the tick box. Do this and let me know what issues you are facing with this and I will help you to resolve them.

    Regards
    Marqas

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘the implied layout ‘container’ is not supported by tag ‘amp-img’’ is closed to new replies.