iFrame within a Rich Text Token on Landing Page | Community
Skip to main content
October 21, 2015
Question

iFrame within a Rich Text Token on Landing Page

  • October 21, 2015
  • 2 replies
  • 2696 views

We populate our landing page templates with tokens. I want to embed YouTube and SlideShare code using a Rich Text token - is it possible to do this? Have tried, unsuccesfully, and am hoping there is a way to make it work. I know that it works by inserting an HTML object, but as mentioned, we used tokens to populate the content on the landing page and would need to redesign the page to accomodate for the YouTube / SlideShare code.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Josh_Hill13
Level 10
October 21, 2015

what have you tried now? Did you drop the custom HTML into the Rich Text Token?

Have you tried using a straight Text Token?

Have you tried loading the code, but then using a Text Token in place of the URLs for the video?

October 22, 2015

Thanks @Justin Cooperman​ and Josh Hill​.

Using the plain Text token works, but curious why the Rich Text token doesn't. Here's what I have in the Rich Text token:

<p>Introduction.</p>

<iframe width="400" height="225" src="youtube.com/embed/10JaQyX4Bzw" frameborder="0" allowfullscreen></iframe>

<p>Outro.</p>

When I hit Save, it turns into:

<p>Introduction.</p>

<p> </p>

<p>Outro.</p>

Hope I'm just making some kind of rookie mistake!

Justin_Cooperm2
Level 10
October 22, 2015

I just tested this and it works exactly how you expect. Maybe try it again and let me know if you don't see it save correctly? Support ticket after that if it's still not working as it should.

Justin_Cooperm2
Level 10
October 21, 2015

Synthia,

This should work fine if you are using a rich-text program token and placing it in the landing page template (or landing page itself). Make sure the landing page is within the program where you have defined the token. If you are having issues, please let me know and I can look into it for you. I can also take a look at your code.