How to storage amp-iframe script?
Hello. I have some script that i must display on AMP version. When a trying to put them to tinymce or textarea the row is cleared.
Incoming string is something like:
<amp-frame layout="responsive" width="500" height="500" src="some_src_here"><div>Read more!</div></amp-iframe>
Output string is something like:
<amp -frame layout="responsive" width="500" height="500" src="some_src_here"><div>Read more!</div>
Is any some field or params for existing fields or something else, that will stop clearing my input.
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
3Hi Vitaly
Thanks for posting.
Unfortunately, the same problem occurs in the Classic Editor Text and Visual tabs. The issue isn’t exclusive to widgets in Page Builder. The Custom HTML widget also doesn’t seem to work as the markup isn’t valid.
I don’t have a solution for this at the moment. My advice would be to look for a WordPress plugin that’s setup to handle this functionality within WordPress. Sorry, I don’t have more to offer at the moment.
Andrew, thanks for the answer. I guessed that the problem is imposible to solve. I decided to write the [amp-frame] shortcode for myself.
Thanks for the update. Really glad to hear you were able to write up a shortcode for the task.
All the best with your site. If any SiteOrigin questions arise in the future, please open a new thread and let us know.
Cheers for now.
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.