Support » Plugin: AMP » Edit Amp-Iframe Attributes?

  • Resolved casbboy

    (@casbboy)


    I have an embed code that is getting converted to amp-iframe. Which is great, but it’s not keeping the proper responsive dimensions.

    I want to tell the plugin to do responsive layout (it gets set to fixed) and it places an inline-style of height along with declaration of height at 400.

    I’d prefer to set the ratio myself, or just set it to 100% width and let the responsive kick in.

    Is this possible to edit these variables/attributes?

    Cheers!
    Ryan

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Please ignore my response – thought it was a different AMP plugin

    • This reply was modified 1 year, 2 months ago by  frenchomatic.
    • This reply was modified 1 year, 2 months ago by  frenchomatic.
    Plugin Author Weston Ruter

    (@westonruter)

    So the source iframe is:

    <iframe width="100%" src="//v.traileraddict.com/115633" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true" scrolling="no" class="embed-ta"></iframe>

    And this is getting converted into:

    <amp-iframe src="https://v.traileraddict.com/115633" allowfullscreen="" class="embed-ta" sandbox="allow-scripts allow-same-origin" height="400" layout="fixed-height"><div placeholder="" class="amp-wp-iframe-placeholder"></div></amp-iframe>

    Correct?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Edit Amp-Iframe Attributes?’ is closed to new replies.