Title: Image that opens iframe &#8211; Help
Last modified: August 31, 2016

---

# Image that opens iframe – Help

 *  Resolved [Jason](https://wordpress.org/support/users/jjpedersen/)
 * (@jjpedersen)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/image-that-opens-iframe-help/)
 * On my home page I have a image of a video that I would like to launch an iframe
   in lightbox.
 * I have:
    1. Set the class to: class=”fancybox-iframe”
    2. Enabled iFrames in the media settings
    3. Tried several different links in the Custom URL: Link to
 * Site: [SchoolAwards](http://schoolAwards.net)
 * [https://wordpress.org/plugins/easy-fancybox/](https://wordpress.org/plugins/easy-fancybox/)

Viewing 1 replies (of 1 total)

 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/image-that-opens-iframe-help/#post-7084766)
 * Hi, the `class="fancybox-iframe"` attribute should be given to the link tag, 
   not the image element. Open the content in the Text tab and make the link look
   like:
 *     ```
       <a href="https://www.demochimp.com/app/view/p/dwqh8k3k" class="fancybox-iframe"><img ... /></a>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Image that opens iframe – Help’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/image-that-opens-iframe-help/#post-7084766)
 * Status: resolved