Client wants the recommended videos to go away. Found this post (http://www.kriesi.at/support/topic/turn-off-youtube-recommended-videos) but I don't have the javascript file that was mentioned.
Flagship - Lightbox - Disable recommended YouTube videos
10 posts from 3 voices-
Posted 7 months ago #
-
Hey!
You didn't post the code ;-)
Best regards,
PeterPosted 7 months ago # -
Posted 7 months ago #
-
<a class="lightbox" href="http://www.youtube.com/watch?v=Ppm30AaehNs?rel=0&lightbox[width]=1000&lightbox[height]=599&lightbox[modal]=true">I now know that lightbox ignores rel=0 but how can I disable recommended videos in Flagship
Posted 7 months ago # -
Hi,
Please look in folder /js/ and make a backup then open aviapoly2.js Please find line 277 which looks like
src += "&wmode=opaque";and change it to look like
src += "&wmode=opaque&rel=0";and find line 281 which looks like
src += "?wmode=opaque";and change it to look like
src += "?wmode=opaque&rel=0";Hopefully this does the trick.
Thanks,
Nick
Posted 7 months ago # -
I wish I could report that it worked but it didn't :(
If it helps here is the actual page the video is on.
Posted 7 months ago # -
Hi,
This is what the link looks like now
http://www.youtube.com/embed/Ppm30AaehNs?rel=0?rel=0&autoplay=1so its reading that rel equals to "0?rel=0" and autoplay equals 1
Please check the original you are embedding, that it has no ?rel=0 and look at the source as to how the link is changed, because there is a renegade "?rel=0" somewhere that has to be removed.
Thanks,
Nick
Posted 7 months ago # -
Found the extra rel=0 and removed it. Recommended videos still pop up at the end.
Posted 7 months ago # -
Client was getting upset so I spent some time researching this morning. Found out that Lightbox Plus for WordPress uses Colorbox which allows for the rel=0 Installed it and added back the rel=0 and the recommended videos at the end are gone! Thanks for all your help. Besides this obstacle....I really like the theme.
Posted 7 months ago # -
Hi,
Thanks for letting us know.
Thanks,
Nick
Posted 7 months ago #
Topic Closed
This topic has been closed to new replies.














