Comments Henrique started the conversationDecember 2, 2019 at 4:57pmHi, how do I use an image and when clicking open the lightbox video (link Youtube)? 4,774Michael repliedDecember 3, 2019 at 7:08amHI!Please use the YouTube element.Henrique repliedDecember 3, 2019 at 1:07pmHi!Youtube element does not open in lightbox I want to use an image and by clicking open in lightbox.Help me. 4,774Michael repliedDecember 3, 2019 at 1:16pmUnfortunately, there is no separate element for this.But such functionality is present in the portfolio elements.https://codex-themes.com/thegem/documentation/#types-of-portfolio-itemsHenrique repliedDecember 5, 2019 at 12:56pmOK. And how do I open a lightbox video after clicking on the icon? Like this page. "Watch video Review" sectionExample: https://codex-themes.com/thegem/gem-cryptocoin/ 4,774Michael repliedDecember 5, 2019 at 1:07pmPlease use this code" <a class="fancybox" href="javascript"> [gem_icon centered="1" pack="userpack" size="large" icon_userpack="e622" color="#ffffff"] </a> <script> var ready = (callback) => { if (document.readyState != "loading") callback(); else document.addEventListener("DOMContentLoaded", callback); }; ready(() => { var elem = document.querySelector(".fancybox"); elem.setAttribute('data-fancybox', ''); elem.setAttribute('data-type', 'iframe'); elem.setAttribute('data-src', 'https://www.youtube.com/embed/r43LhSUUGTQ'); }); </script> <style> #link {display: none} </style> Sign in to reply ...
Hi, how do I use an image and when clicking open the lightbox video (link Youtube)?
HI!
Please use the YouTube element.
Hi!
Youtube element does not open in lightbox
I want to use an image and by clicking open in lightbox.
Help me.
Unfortunately, there is no separate element for this.
But such functionality is present in the portfolio elements.
https://codex-themes.com/thegem/documentation/#types-of-portfolio-items
OK.
And how do I open a lightbox video after clicking on the icon?
Like this page. "Watch video Review" section
Example: https://codex-themes.com/thegem/gem-cryptocoin/
Please use this code"