Leoslaire
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] How to add allow-presentation attribute to amp-iframeI’m waiting on ftp credentials so I can regain access to the site. I will let you know as soon as I’m able
Forum: Plugins
In reply to: [AMP] How to add allow-presentation attribute to amp-iframeI did add it to my functions.php. My functions.php is in a child theme and that’s the only code in it except the opening and closing php tags. But it still managed to crash the staging site.
Forum: Plugins
In reply to: [AMP] How to add allow-presentation attribute to amp-iframeIn functions.php
Forum: Plugins
In reply to: [AMP] How to add allow-presentation attribute to amp-iframeWe are running Gravity forms but the error is appearing on pages where there are no videos. Just email sign up forms. I looked for the Advanced>AJAX option on the block options for all the forms we have. I did not find it
I tried adding the code snippet you shared and I broke the staging site with it. The site now returns an HTML 500 Error. So I’ll log in via ftp and remove that snippet
Forum: Plugins
In reply to: [AMP] The tag ‘iframe’ is missing a mandatory attributeI am getting the same problem
The tag ‘iframe’ is missing a mandatory attribute – pick one of [‘src’, ‘srcdoc’]
Here is the tag:
<amp-iframe id=”gform_ajax_frame_4″ sandbox=”allow-scripts allow-same-origin” height=”400″ layout=”fixed-height” class=”amp-wp-db0bb1b”>
I understand that the code that is missing is this:
src=”https://cdn.ampproject.org/v0/amp-iframe-0.1.js”
What I need help with is adding the src code to the amp-iframe tag. How do I add it? I’m pretty new at this so please be gentle!