Title: Where to insert the iframe code?
Last modified: August 22, 2016

---

# Where to insert the iframe code?

 *  Resolved [atpm780](https://wordpress.org/support/users/atpm780/)
 * (@atpm780)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/where-to-insert-the-iframe-code/)
 * I’ve read the details on this forum of using iframe – but still don’t get it 
   for my situation.
 * I am embedding videos (not youtube or vimeo) using the iframe source code.
 * Now that I have that “long” source code – where does it go and what do I do? 
   There is no url to link the class=”fancybox-iframe” together with.
 * I want my students to be able to read the title of the video as a link – once
   they click the link (or text) this iframe video opens in easy fancyBox. Is this
   possible?
 * Thanks in advance for your reply!
 * [https://wordpress.org/plugins/easy-fancybox/](https://wordpress.org/plugins/easy-fancybox/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/where-to-insert-the-iframe-code/#post-5219259)
 * Hi, FancyBox works on links. You do not need to insert the “long” iframe embed
   code, you need to create a link.
 * > I want my students to be able to read the title of the video as a link – once
   > they click the link (or text) this iframe video opens in easy fancyBox. Is 
   > this possible?
 * 1. Switch to the HTML tab in your post editor;
    2. Simply type the video title
   in your post, then select it and click the Link button. The URL target of the
   link needs to be the same as the iframe source URL. You can find that in the 
   src=”…” part of the original iframe code. 3. Click OK and see the link you just
   created which looks like `<a href="URL_HERE">Title Here</a>`. Now add an extra`
   class="fancybox-iframe"` so it now looks like `<a href="URL_HERE" class="fancybox-
   iframe">Title Here</a>`.
 * That should be all 🙂
 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/where-to-insert-the-iframe-code/#post-5219260)
 * Note: this can be in a text widget too…
 *  Thread Starter [atpm780](https://wordpress.org/support/users/atpm780/)
 * (@atpm780)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/where-to-insert-the-iframe-code/#post-5219331)
 * Ah Perfect!! Thank you! It works perfectly now!
 * Thank you for such a prompt reply!!!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Where to insert the iframe code?’ is closed to new replies.

 * ![](https://ps.w.org/easy-fancybox/assets/icon-256x256.png?rev=3188201)
 * [Firelight Lightbox](https://wordpress.org/plugins/easy-fancybox/)
 * [Support Threads](https://wordpress.org/support/plugin/easy-fancybox/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-fancybox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-fancybox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-fancybox/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [atpm780](https://wordpress.org/support/users/atpm780/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/where-to-insert-the-iframe-code/#post-5219331)
 * Status: resolved