Removing related videos from end of Youtube video

Hi there:) I’m wanting to use an Infusionsoft landing page with Youtube video linked with it. Is there a way to avoid the “Related Videos” from the end of the video clip doing things this way? The only way I’ve found so far is to embed the clip, but haven’t figured out how to do that using the Infusionsoft landing page. Thanks in advance!

Hi Matt, You can use the HTML Block from the “Add Elements” on the left hand side

You can then use the following Script - Anything with a 0 means it’s not enabled and anything with a 1 means it is enabled.

Youtube Player Script

    <div id="ytplayer"></div>
    <script>
    // Load the IFrame Player API code asynchronously.
    var tag = document.createElement('script');
    tag.src = "https://www.youtube.com/player_api";
    var firstScriptTag = document.getElementsByTagName('script')[0];
    firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
    // Replace the 'ytplayer' element with an <iframe> and
    // YouTube player after the API code downloads.
    var player;
    function onYouTubePlayerAPIReady() {
        player = new YT.Player('ytplayer', {
            height: '720',
            width: '1280',
            videoId: 'YOUR YOUTUBE EXTENSION',
            playerVars: {
                'autoplay': 0,
                'showinfo': 0,
                'rel': 0,
                'frameborder': 0,
                'controls': 1
            }
        });
    }
    </script>
1 Like

There it is!! I was looking for that @Amanda_Madsen!

2 Likes

Thank you SO MUCH!!!