Hi @manucausse,
It seems in the iframe tag, you’re not adding the width value because of this it’s getting a validation error and iframe is not rendering in AMP.
Screenshot: https://take.ms/vgilm
I recommend you to add the width value of the iframe. so it will render and work perfectly in AMP.
Thank you.
Thank you for your help.
I have added a width but there is no change.
Any idea?
Regards ;-))
This is the iframe (in a divi text zone)
<iframe scrolling=”no” width=”700″ height=”409″ frameborder=”0″ src=”https://www.travelpayouts.com/widgets/fa0eb24e1175e07d28f26b628ced340d.html?v=1600″></iframe>
-
This reply was modified 7 years, 3 months ago by
manucausse.
Hi @manucausse,
To work the form and submit button.Please add the ‘allow-forms’ in the sandbox attribute like this:
<iframe scrolling=”no” width=”700″ height=”409″ frameborder=”0″ src=”https://www.travelpayouts.com/widgets/fa0eb24e1175e07d28f26b628ced340d.html?v=1600″
sandbox="allow-same-origin allow-scripts allow-forms allow-popups" ></iframe>
Hope it helps.
Thanks a lot, that was the solution.
Also I can use width:100% and height:auto. It’s working perfectly and I can have somthing more responsive on non-amp version.
Great support !
Regards.
Emmanuel
Hi @manucausse,
Thank you so much. We are glad to have you as a user.
If you like the plugin, then please support us by leaving a feedback at https://ww.wp.xz.cn/support/plugin/accelerated-mobile-pages/reviews/
My team and I will really appreciate that.
And also I’m changing the topic’s status to resolved. If you have any other queries, feel free to create the new topic.
Thank you