Support ForumIs there a pop-up lightbox in the theme to open video popups? – Support Forum https://support.ishyoboy.com/forums/topic/is-there-a-pop-up-lightbox-in-the-theme-to-open-video-popups/feed/ Sat, 04 May 2024 02:17:08 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/is-there-a-pop-up-lightbox-in-the-theme-to-open-video-popups/#post-5974 <![CDATA[Is there a pop-up lightbox in the theme to open video popups?]]> https://support.ishyoboy.com/forums/topic/is-there-a-pop-up-lightbox-in-the-theme-to-open-video-popups/#post-5974 Mon, 15 Dec 2014 05:52:56 +0000 strillogy Hi,

Is there a lightbox option in the theme? I need to add video popups to some image element buttons, but I wasn’t sure if you had something in place for this.

]]>
https://support.ishyoboy.com/forums/topic/is-there-a-pop-up-lightbox-in-the-theme-to-open-video-popups/#post-5976 <![CDATA[Reply To: Is there a pop-up lightbox in the theme to open video popups?]]> https://support.ishyoboy.com/forums/topic/is-there-a-pop-up-lightbox-in-the-theme-to-open-video-popups/#post-5976 Mon, 15 Dec 2014 06:02:53 +0000 IshYoBoy Hi,

Yes, there is a lightbox in the theme. FancyBox. To open any element in fancybox you will have to add the class “openfancybox-image” to the link element.

To open a video pop-up e.g. YouTube video you have to do two things:

1. Add another “fancybox.iframe” class
2. Use the iframe link from the YouTube’s embed iframe code as if you use the regular one a SAMEORIGIN policy problem will prevent it.

So the final link would look like this:
<a class="openfancybox-image fancybox.iframe" href="https://www.youtube.com/embed/L9szn1QQfas">Video</a>

You could also add your own JavaScript FancyBox trigger on document ready if you want to control more values. E.g.

Hope this helps.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>