• Resolved geniovi

    (@geniovi)


    in my wordpress article i add a iframe video.
    this is a code

    <iframe id=”playeriframe” src=”VIDEO URL” frameborder=”0″ scrolling=”no” style=”height:100%;width:100%” allowfullscreen=”allowfullscreen”></iframe>

    but my video is stretch. plugin force height of <amp-iframe to 400px.

    why? I can avoid it?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi @geniovi

    Can you share the URL where you have this video?

    So that I can check and help you?

    Thread Starter geniovi

    (@geniovi)

    hello, this is a url of my demo site
    https://bit.ly/2G1WIGh

    plugin add default height:400px. Another question, a css !important tag not works? thanks

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi @geniovi

    The code that you are using to embed the iframe has an inlined padding below it.

    May I know how are you embedding the iframe?

    Also, the !important tag is not allowed as per the AMP guidelines. We will have to properly override some style.

    Thread Starter geniovi

    (@geniovi)

    my code:

    <iframe id=”playeriframe” src=”VIDEO URL” frameborder=”0″ scrolling=”no” style=”height:100%;width:100%” allowfullscreen=”allowfullscreen”></iframe>

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi @geniovi

    Are you inserting it directly into the visual editor?

    @ahmedkaludi Any update on this?
    Even if my iframe is empty, it takes up the height of 400px.

    Plugin Contributor ampforwp

    (@ampforwp)

    Hi Pallavisingh1,

    Could you send me the Proper link on which you’re facing the issue so that I can check and let you know and share me with the Code? May I know how are you trying to embed the iframe?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Amp and iframe problem with height’ is closed to new replies.