• TPDave

    (@tpdave)


    I’m just testing a few things to roll out, and this plugin converts the iframe to the amp-iframe but seems to hard encode the height to 400px. Obviously, you can’t !important override. It also seems to put the scroll bar back in and I can’t remove it.

    You can see this on the Amazon reviews on this test page, compare the amp vs desktop version.

    Any way around these 2 issues please?

    The page I need help with: [log in to see the link]

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

    (@ampforwp)

    Hi @tpdave,

    May I know how you’re embedding the iframe in non-amp? are you giving the height & width values for this iframe?

    Thread Starter TPDave

    (@tpdave)

    Hi

    Sorry for the delay. It’s via a plugin called Amazon Product: https://wordpress.org/plugins/amazon-product-in-a-post-plugin/

    It inserts an element style sizing “style = “height: 150px;” for the iframe on the desktop version.

    Thread Starter TPDave

    (@tpdave)

    Additional issue is that it (now?) also seems to add “#amp=1” to the end of the iframe url which breaks it.

    Plugin Contributor ampforwp

    (@ampforwp)

    Hi @tpdave,

    Regarding the amp; in the URL, Can you please check with the latest version of our plugin? and let us know whether the issue is resolved or not.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Iframe forced to 400px height in element’ is closed to new replies.