• Resolved pexel

    (@pexel)


    hi

    I share my calculation tools via iframe. But I wonder why the amp sounds broken on the sites?
    Thanks

    Link

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @pexel

    If you want to load the form via iframe from other websites, you must use amp-iframe instead.

    https://amp.dev/es/documentation/components/amp-iframe

    Best regards.

    Thread Starter pexel

    (@pexel)

    Thanks

    • This reply was modified 12 months ago by pexel.
    Plugin Author codepeople

    (@codepeople)

    Hello @pexel

    Please note this question is not about our plugin but the structure of AMP pages and how to import information from other domains.

    To load content from other domains in an AMP page, you must include a script tag in the page that will embed the form (https://cdn.ampproject.org/v0/amp-iframe-0.1.js) and an amp-iframe tag:

    <amp-iframe width="500" height="685"
        sandbox="allow-scripts allow-same-origin"
        layout="responsive"
        frameborder="0"
        src="https://www.pexpe.com/?cff-form=156">
      </amp-iframe>

    Learn more about the amp-iframe tag’s structure by visiting the link provided in the previous entry.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Amp website’ is closed to new replies.