This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

How to storage amp-iframe script?

6 years ago · Last reply by Andrew Misplon 6 years ago

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

3
  1. Andrew Misplon Staff 6 years, 8 months ago

    Hi 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.

  2. Vitaly Dmitriev 6 years, 8 months ago

    Andrew, thanks for the answer. I guessed that the problem is imposible to solve. I decided to write the [amp-frame] shortcode for myself.

  3. Andrew Misplon Staff 6 years, 8 months ago

    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.

Have a different question or issue?

Start New Thread