• Resolved dleigh

    (@dleigh)


    I’d like to add “&rel=0” to videos to take advantage of how this parameter affects suggested videos. I’ve added it to the video that I’m specifying with Divi Torque’s video popup module, but it gets stripped off.

    Then I wanted to implement what I saw here https://www.peeayecreative.com/how-to-hide-related-youtube-videos-in-divi/ (which works well for the Divi Video Module) to the Divi Torque Video Popup module. Unfortunately, no matter what I try for the targeting the element, it doesn’t work.

    Do you have any suggestions about how I might do this please?
    Thanks!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dleigh

    (@dleigh)

    Here’s the unfortunate answer to my own issue:

    Making DiviTorque popup video add a “rel=0” to the end means that you have to go into the “MagnificPopup” javascript class that DiviTorque uses and modify: wp-content/plugins/addons-for-divi/assets/js/magnific-popup.js to hard code that query parameter. So you look for “//www.youtube.com/embed/%id%?autoplay=1” and simply add the “&rel=0” at the end of the quoted string. Obviously whenever DiviTorque gets updated you’ll have to do this.

    I’ll go to the MagnificPopup project and see if they can update this

    Thread Starter dleigh

    (@dleigh)

    Ok, so Magnific Popup has not been updated in a LONG time. It’s not likely to be changed. Additionally (this is where DiviTorque developers need to listen), in the docs and in Github there is a workaround that would then change how Magnific Popup is called from the “frontend-bundle.min.js” file. The docs talk about how you can pass any URL you want into the iframe: https://dimsemenov.com/plugins/magnific-popup/documentation.html#iframe-type and in the GitHub forum someone has done just that: https://github.com/dimsemenov/Magnific-Popup/issues/727#issuecomment-302377316

    Frankly it’s easier for me to modify the magnific-popup.js file (if I have to choose between the two), but it would be great if DiviTorque modified the way that they called Magnific Popup AND gave us a simple option in the Divi module parameters to turn rel=0 on/off or to add our own query parameters to the link. They would then pass it to Magnific Popup and all would be good.

    Hello @dleigh
    We are sorry about your experience.
    We forwarded this issue to our developer team. Please give us some time and let us check this issue.
    Best Regards,

    Hello @dleigh
    We will add this feature to our next update.
    As we right now not adding any new features to this module, it will take some time to add this feature to this module. Thanks for your understanding.
    Best Regards,

    Thread Starter dleigh

    (@dleigh)

    Looking forward to it. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add “&rel=0” to popup YouTube videos’ is closed to new replies.