Hi,
I have a YouTube video that I show when user clicks a button. The video popups in a new video and the background gets grayed out. I am using an Enfold button and just have a manual link to the YouTube video. This all works great except for when I try to add “rel=0” to the button click URL to hide related videos. For some reason this does not work at all.
Please suggest appropriate fix. I am using a child theme and I am ready whatever it takes to solve this. I also think this should be fixed in Enfold as commercial website rarely want to show related videos at the end of e.g. a product explainer video.
Thanks.
<a href='https://www.youtube.com/watch?time_continue=0&v=XXXXXXXXX' class='avia-button avia-icon_select-no avia-color-custom avia-size-x-large avia-position-right ' style='background-color:#36cc00; border-color:#36cc00; color:#ffffff; ' ><span class='avia_iconbox_title' >See Video</span></a>
Hey!
This could work for you:
https://www.codersclan.net/ticket/329
You’d need to include a custom JS script in your site, assign a class to the link and point it accordingly.
Regards,
Josue
Your answer below solved it much easier :) Thanks.
https://kriesi.at/support/topic/youtube-video-not-working-in-ligthbox/#post-288867