Home › Forums › Support › YouTube Video on click in Lightbox This topic has 3 replies, 3 voices, and was last updated 4 years, 3 months ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts February 8, 2019 at 6:20 am #804945 webcréateur Hi. We want to use YouTube videos on our homepage. I fount a Thread where Tom said they use Lity on the frontage of https://generatepress.com/ https://github.com/jsor/lity I tried to use the mentioned plugin. With pictures, it works but unfortunately it does not work with videos from Vimeo or YouTube. Can you please tell me how you did embed Lity in your WordPress? With a Hook in GP Elements wp_head? <link href=”https://mydomain/wp-content/dist/lity.css” rel=”stylesheet”> <script src=”https://mydomain/wp-content//wp-content/vendor/jquery.js”></script> <script src=”https://mydomain/wp-content/wp-content/dist/lity.js”></script> Thank you. Best regards. btw. The following Plugin does not work with video: WP Video Lightbox February 8, 2019 at 9:20 am #805217 LeoStaff Customer Support Hi there, Have you tried WP Featherlight? This is what Tom suggested if you aren’t comfortable with setting it up: https://generatepress.com/forums/topic/load-video-only-on-click-like-that-on-generatepress-com/#post-690093 February 9, 2019 at 12:44 am #805637 webcréateur Hi Leo, thanks for answering. Yes, I tested WP Featherlight without success, too. 🙁 Do you have any advice or guidance on how to include lity? Thank you. Best regards. February 9, 2019 at 9:10 am #806010 TomLead Developer Lead Developer Hi there, Once Lity is installed, you just need to add the data-lity attribute to your link: https://www.screencast.com/t/BOoQ3ck4IO Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In