Mautic Community Forums

Code as Dynamic Web Content

Your problem
My problem is :

I’m using dynamic web content with Wordpress. It works fine.

I want to embed an iframe and script tag in dynamic web content but this stuff is being stripped even when I add it in the code view.

If I add it in the text view, my code is escaped, as one would expect.

Steps I have tried to fix the problem :

Paste the code into the code section of the WYSIWYG editor. It does not save the code I paste.

Edit:

I’m contemplating just putting an empty ‘div’ or ‘p’ into the dynamic web content and then injecting the dynamic content I want in the actual slot (an iframe and a script) on the host page via js, but I’d prefer to have the more elegant solution of including everything in Mautic.

Is it possible?

As far as I know you can’t. Sorry.

Thanks @joeyk

I’m going to create a different page for each variation.