Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #496671

    Here’s the website:

    http://www.ductsquads.com

    The play button has a video I made for the client and when I add the “?rel=0” to the youtube link using the advanced layout editor (Avia Layout Builder), it doesn’t work, related videos are still showing up at the end of the youtube video. I can’t seem to find a solution and I figure instead of wasting many more hours on this, perhaps someone here has a solution.

    (The video is linked with an icon from the Content Elements tab in the Layout Builder)

    #496677

    Hey canadianjohnson!

    Please try using this plugin – https://wordpress.org/plugins/hide-youtube-related-videos/

    Regards,
    Yigit

    #496693

    I tried this already, am I doing something wrong because it doesn’t seem to be working. I just reactivated the plugin to try again. Maybe it works on your end? I did a hard refresh of the page but still nothing. Any ideas?

    #496696

    Hey!

    Can you please post the link of YouTube video you would like to use in private content field so we can test?

    Cheers!
    Yigit

    #496713

    Here you go.

    Thanks so much for your help so far!

    #497281

    Hey!

    Apparently it does not work when used in lightbox. Sorry about that

    Best regards,
    Yigit

    #497377

    There is no way to add ?rel=0 to the lightbox? Sorry if I am confused about this because it seems like such a simple issue.

    #497390

    So adding it to the jquery.magnific-popup.min.js as described here:

    https://kriesi.at/support/topic/enfold-new-light-box-magnific-popup-you-tube-video-urls/

    seemed to work. I just used Filezilla (took me a while to figure out how to use it but it worked). Thanks for trying to help! If anyone else wants to fix this issue I recommend downloading Filezilla and changing the file as explained in the above link. Here is the comment that helped:

    Hey!

    Unfortunately the magnific popup plugin is quite limited when it comes to youtube urls. The embed url is harcoded in the js source code and you can not change it with the video element or wordpress settings. If you want to add additional parameters like the rel=0 parameter open up wp-content/themes/enfold/js/aviapopup/jquery.magnific-popup.min.js and search for:

    //www.youtube.com/embed/%id%?autoplay=1
    Add your custom parameters to this url – i.e. like:

    //www.youtube.com/embed/%id%?autoplay=1&rel=0&autohide=1&showinfo=0&fs=1
    and save the jquery.magnific-popup.min.js file. Afterwards the lightbox should load the right player based on the parameters you added to the url.

    Best regards,
    Peter

    #497400

    Hey!

    Glad you figured it out and thank you for sharing your solution :)
    If you have any other questions or issues, please feel free to start a new thread

    Cheers!
    Yigit

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Client wants to get rid of related videos’ is closed to new replies.