Tagged: Layer Slider, pop-up, youtube video
Hey Folks
My client would like a button in his slider to trigger a youtube video pop-up like – https://www.darryllovegrove.com/
His website is http://www.premierentertainment.com.au – I would assume that I would use a layer slider with a button and attach a hard coded javascript to it? I’m sure there’s an easy way to do this that I’ve probably overlooked…
Cheers
Andy
Hey Andy,
Thank you for using Enfold.
Links from youtube or vimeo will automatically open inside a lightbox. You can add the video url to any elements with links such as button, image etc.
Best regards,
Ismael
in this case you can have alll those options to set : so i would input to that button – with iframe=true option
https://www.youtube-nocookie.com/embed/0f1fZgnhmJw?enablejsapi=1&ecver=2&cc_load_policy=1&rel=0&showinfo=0&autoplay=1&color=white&iv_load_policy=3&iframe=true
see here: https://webers-testseite.de/slider-with-video-button/
by the way you can see here : https://developers.google.com/youtube/youtube_player_demo – if you click “show player parameters” what the options are.
accept the ecver2 ( this is for not having video suggestions on pausing the video)
by the way looping will not work with one video in the playlist! (only if you have the same video in the playlist)