• Resolved vm2003

    (@vm2003)


    Is there any way to turn off Related YouTube Videos when my video ends?

    In Videolightbox section I pasted the Youtube URL of my video . I also used the parameter ?rel=0, but it didn’t work.

    Thank you in advance.
    Vicen?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi vm2003,

    Unfortunately we couldn’t help you in this question. Please try to post your question here : https://dimsemenov.com/plugins/magnific-popup/ Because we are using this in OnePress. Maybe they will let you know good solution.

    Kind regards.

    Thread Starter vm2003

    (@vm2003)

    Thank you for your answer, congthien.

    I have been searching for this issue in the GitHub forum from dimsemenov and I found it. The solution given to the user who put this issue was as follows:

    In the line 1623
    src: ‘//www.youtube.com/embed/%id%?autoplay=1’
    You can do something like this:
    src: ‘//www.youtube.com/embed/%id%?autoplay=1’&rel=0

    Could you help me about my question having now this clue?

    Thank you in advance.
    Vicen?

    Hi,

    Thank you for solution. Now you can open onepress/assets/js/theme.js , from the line 318 , copy and replace by this code : https://snippi.com/s/x0d5z75

    Let me know!

    Thread Starter vm2003

    (@vm2003)

    congthien, thank you for the code provided. It works.

    Only one last question about this solution. I’ve changed the theme.js file in the folder “assets”. If it comes a new theme’s version in the future and I decide to update the theme to that new version, will I have to replace again the provided code in the new version or this change doesn’t affect future updates?

    Thank you again,
    Vicen?

    Hi,

    I forgot tell you that will be lost when upgrade OnePress. You can do by this way to avoid that ( In case we upgrade but without this).
    1. Create new file assets/js/custom.js in your Child theme.
    2. Copy paste this in your Child theme’s functions.php : https://snippi.com/s/vcfu4ev
    3. Copy paste this in your custom.js : https://snippi.com/s/81ify16

    And you will have it forever and of course this change doesn’t affect future updates ??

    Thread Starter vm2003

    (@vm2003)

    It is what I thought. Thank you very much, congthien, for the information about the procedure to avoid loosing the previous solution after one upgrade, and for all your support.

    For me, this issue is closed.

    Kind regards,
    Vicen?

    You’re welcome ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Turn Off Related YouTube Videos’ is closed to new replies.