Hi there,
I tried adding the “?rel=0” to the end of my youtube video links, but then the lightbox doesn’t recognize the link.
My link code looks like this:
What’s in the Box – Boundless<br> Forearm Crutch”
I tried adding the lightbox tag like this:
“What’s in the Box – Boundless<br> Forearm Crutch”
but it still didn’t work.
I finally tried editing the php files of the plugin to recognize links with “?rel=0″ at the end by adding it in here:
preg_match_all(‘/<a(.*?)href=(?:\’|”)(http:\/\/(?:www\.)?((youtube\.com\/watch\?v=[a-z0-9]{11}\?rel=0)|(vimeo\.com\/[0-9]{8,})))(?:\’|”)(.*?)>/i’, $content, $links);
so then it would open links with “?rel=0” at the end, but there were still related videos once the video finished playing.
Is there any way to disable related videos at the end of a youtube video playing through Responsive Lightbox.
Thanks,
Kelly