Today I am going to show you how to stop display youtube related videos from embedding. sometimes it is very beneficial when you embedding your own video from Youtube.
I want to show you the issue we get when we are trying to add YouTube videos to our website and at the end, it’s showing related videos. In this situation, there is no way to fix the issue with your channel or anything else. it’s just random videos that show at the end of every video.
How to stop display youtube related videos
However, There’s a code that can stop display youtube related videos. It should be noted that this code doesn’t work with the Divi theme video module. You need to use the text module, if you’re trying to implement this method, it’ll only work if you’re using the text mode.
What you need to do is just go to the video that you want to embed on your website or anywhere else. Now Click on the share that will display an embed code like the screenshot below. So you’ve got the embed code, then go back to the web page, where you want to embed the video. Paste the copied code there.
Read Also: Top 10 Woocommerce Themes for Your eCommerce Store
So, you paste the code in, and then that’s, that’s actually not going to … that’s regular embedding. Still, it’s showing other related videos at the end of the playback. I don’t think it will work in this situation.
Now you need to do is add this little code ?rel=0 at the end of the link same as the screenshot below. If you put ?rel=0 now when it plays, it shows relevant videos from your channel, which is a great thing. is not it?
You can’t get rid of related videos. Google said that they think related is crucial to engaging visitors. So you can’t stop display youtube related videos, but you can at least show your own videos from your channel, which is a really cool feature I think. To get the embed code from YouTube and then look at the code that’s written after embed, add ?rel=0 and you’re off to the races.
If you want to see all of the parameters for youtube videos the link is below. ?rel=0 worked as perfectly it stopped any related videos showing. It’s quite a perfect example as at the same time they also stopped the ability to stop the title of the video shows.
Here is an example of how the code looks in context. Hope this tutorial is enough to stop display youtube related videos.