Monday, April 19, 2021
No menu items!
Home Daily Hack's How to stop display youtube related videos from Embedding

How to stop display youtube related videos from Embedding

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 fix the issue. 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?

How to stop display youtube related videos from Embedding

You can’t get rid of related videos. Google said that they think related is crucial to engaging visitors. So you can’t get rid of 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.

how-to-stop-display-youtube-releted-videos

Firoz Hassanhttps://www.firozhassan.com/
I am a professional WordPress, Shopify, and Woocommerce Front-End Designer. I am specialized in WordPress theme Customization and Development. I am able to fix any kind of WordPress error/issue like PHP, CSS, Js issues, and other Theme and Plugin related issues. Client Satisfaction is my priority.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments