Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #12266

    We would like to turn off YouTube’s recommended videos in the player. I figured this can be done by passing “rel=0″ to the YouTube video URL in the embed / iframe.

    I tested this by adding rel=0 on the iframe URL and it worked. I tried adding rel=0 to the YouTube URL I used in the Slideshow Video, but that did not work.

    I also figured prettyPhoto supports this attribute if present.

    But am not sure what changes do I need to do to achieve this results. What files do I need to change? Where?

    #74887

    No replies yet?

    #74888

    Hi niravmehta,

    I’m not sure how you could do this with how the theme strips out and re-modifies the youtube links. I’ve tagged the thread for Kriesi to take a look at and in the mean time I’ll need to dig into the theme files a bit and see if its easily modified. If so, it would be for all youtube video links but that may not be an issue.

    Regards,

    Devin

    #74889

    Yes, that would be awesome. Removing related videos from all embeds is no problem.

    Thanks in advance.

    #74890

    Hi niravmehta,

    In your theme files, open up js>adaptavia.js and search for:

    {e+="&wmode=opaque"}else{e+="?wmode=opaque"}

    Replace that with:

    {e+="&wmode=opaque&rel=0"}else{e+="?wmode=opaque&rel=0"}

    Then re-upload to your files on your server in the same place and that should do it.

    Regards,

    Devin

    #74891

    Excellent! That worked!

    Thanks for the help Devin.

    #74892

    Great! Glad I could help :)

    Regards,

    Devin

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Turn off YouTube Recommended Videos’ is closed to new replies.