• Resolved atpm780

    (@atpm780)


    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://ww.wp.xz.cn/plugins/easy-fancybox/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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 🙂

    Note: this can be in a text widget too…

    Thread Starter atpm780

    (@atpm780)

    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.