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
- Open the video you want to embed
- Click the “Share” button found just below the clip
- 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
- Below this text box, click “SHOW MORE” at the bottom of that section
- 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”.
- 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 &rel=0 on the end, just like in the examples below.
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&version=3&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&version=3&rel=0" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>