Chris Sears

How to Disable Related Videos in Embedded YouTube Clips

Posted by to Development
How to Disable Related Videos in Embedded YouTube Clips

Embedded videos are a great resource for SEO and user engagement so if you’re embedding a YouTube clip in your page content or blog, you generally don’t want to be pointing them to other related videos when they’re done. These clips should be used to enhance your content and keep the user’s attention, not send them down a vaguely-related rabbit hole of fail compilations!

Disabling this function is easier than you might think and there are two simple options to choose from depending on your technical ability.

Option 1 – Using the YouTube Interface

  1. Open the video you want to embed
  2. Click the “Share” button found just below the clip Youtube Screenshot
  3. From the section that slides out, click the “Embed” tab and you’ll see a text box containing either the <object> or <embed> code to drop into your HTML
  4. Below this text box, click “SHOW MORE” at the bottom of that section
  5. You’ll now see a preview of the clip and a number of additional options. Deselect the first checkbox towards the bottom that says “Show suggested videos when the video finishes”. Youtube Suggested Videos
  6. After deselecting this option you’ll notice the embed code updates to allow for this new parameter. Now, simply copy the new embed code and drop it into your HTML.

Option 2 – Edit the Video Path Directly

When you embed a YouTube clip you’ll likely be using either an <object> or <iframe> and the method is exactly the same for both. Simply update the video path to include &amp;rel=0 on the end, just like in the examples below.

Before
//www.youtube.com/v/rsAFva9I7lk?hl=en_GB&version=3

After
//www.youtube.com/v/rsAFva9I7lk?hl=en_GB&version=3&rel=0

The below clip has been embedded inside the following <object>, note the video reference used in both sections of this embed code contains the additional characters.

<object width="560" height="315"><param name="movie" value="//www.youtube.com/v/rsAFva9I7lk?hl=en_GB&amp;version=3&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="//www.youtube.com/v/rsAFva9I7lk?hl=en_GB&amp;version=3&amp;rel=0" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>

Result

Chris Sears

About Chris Sears

Chris Sears is a passionate web marketing specialist who has helped many businesses grow from Search Engine Optimisation and Adwords Management throughout Australia.

Leave a Reply

Your email address will not be published. Required fields are marked *