Hi, I know there is a code you can add to a YouTube video link to stop the YouTube page showing up at the end of the video on your website. Anyone know what that code is? Thank you! Donna
Announcement
Collapse
No announcement yet.
YouTube code
Collapse
X
-
The code you're referring to is typically added as a parameter to the YouTube video URL. It's called "rel=0" (short for "related videos"). When added to the end of a YouTube video URL, it helps prevent YouTube from showing suggested videos at the end of the embedded video on your website.
Here's how you can use it:- Take your standard YouTube video URL, which might look like this: https://www.youtube.com/watch?v=VIDEO_ID
- Add "?rel=0" to the end of the URL: https://www.youtube.com/watch?v=VIDEO_ID?rel=0
-
Hi Eldon, Thank you for the code. I must have left something off!
This is the code:
https://youtube.com/shorts/Un6Fp3I1f...A5Nco1BC4wUDF2
This is what I added:
https://youtube.com/shorts/Un6Fp3I1f...BC4wUDF2?rel=0
I used upper case O and also tried zero.
Thank you for all of your help.
Donna
Comment
-
You were on the right track. However, you are using the "shorts" format, which I cannot say will work in this case. With that being said, I think I gave you the wrong format anyway (my apologies). Try this instead:
https://www.youtube.com/embed/VIDEO_ID?rel=0
Replace VIDEO_ID with the id of your video, like below:
https://www.youtube.com/embed/Un6Fp3I1fo8?rel=0
Let me know if that works for you.
Comment
-
Originally posted by eldon99 View PostYou were on the right track. However, you are using the "shorts" format, which I cannot say will work in this case. With that being said, I think I gave you the wrong format anyway (my apologies).
Leslie Kirk
Miva Certified Developer
Miva Merchant Specialist since 1997
Previously of Webs Your Way (aka Leslie Nord leslienord)
Email me: [email protected]
www.lesliekirk.com
Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr
Comment
Comment