Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1035521

    hi suppot team

    i would like to show videos with:

    – no youtube contorl field
    – no youtube infos
    – no follow up videso at the end

    All the best, Pascal

    #1036998

    Hey Pascal,

    Thank you for using Enfold.

    This thread should help:

    // https://kriesi.at/support/topic/adding-parameter-to-youtube-urls

    I modified the script a bit:

    function youtube_fix(){
    ?>
    <script>
    (function($){ 
        $('body').on('DOMNodeInserted', function(){
            $('iframe.mfp-iframe[src*="youtube.com"]').each(function() {
            var _src = $(this).attr("src")
            $(this).attr("src", _src +  '&cc_load_policy=1&enablejsapi=1&ecver=2&playsinline=1&rel=0&showinfo=0&color=white&iv_load_policy=3&showinfo=0&controls=0')
            });
        })
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'youtube_fix');

    Best regards,
    Ismael

    #1037668

    Hi Ismael,

    i put the script in the functions.php but its still the same:

    All the best,
    Pascal

    #1039178

    Hi,

    I load your web site and I cant see the code on functions.php

    Best regards,
    Basilis

    #1056525

    Hi Basis

    But the the releted videos at the end still apear.

    All the best, Pascal

    #1057023

    Hi,

    Thanks for the update. According to the youtube player API, you will no longer be able to disable related videos.

    The behavior for the rel parameter is changing on or after September 25, 2018. The effect of the change is that you will not be able to disable related videos.

    // https://developers.google.com/youtube/player_parameters#release_notes_08_23_2018

    Best regards,
    Ismael

    #1142287

    Hello,
    Although this is an older question, I may have the solution for this. A little external software named Vidbox is solving the problem. You can enter the Youtube link in Vidbox and add a thumbnail. After that you get an embed code that you can insert in the code block of Enfold.
    It shows than only related videos of your own.
    It’s available on WarriorPlus. You can check how it works on

    There are also some small videos in the sidebar.
    Good luck with it.

    Best regards,
    Henk

    #1142842

    Hi Henk,

    Thanks for sharing this information.
    We appreciate it a lot :)

    Best regards,
    Nikko

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.