07455 744 454 info@digitalsmithy.co.uk

Unfortunately there has never been an easy way to prevent related videos using the standard Divi video module. Somehow getting ?rel=0 into the url once worked, but no more.

As of Sep 2018 YouTube (aka Google) deprecated the ?rel=0 parameter, their revenue always being more important than user preferences.

There is a slightly ugly but possibly interesting work-around.

The first step is to use an iFrame. Ugly and no-one prefers iFrames, but there you are.

<iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_URL?controls=1&rel=0&color=red&autoplay=0&modestbranding=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

While ?rel=0 still doesn’t prevent related videos, what it now does is only choose videos from the same YouTube channel. If you are able to set a channel per website this almost turns unwanted related videos into a useful ‘watch more’ option – as perhaps it was in ancient times.

If you’re not a regular user of YouTube – or are willing to maintain a channel exclusively for a website (by setting up a google account for it) – then you can just post the one video on that channel and no related videos will be shown.

Get In Touch

I'm happy to talk over what you need. If I don't have the solution I'll advise you on who might, or what you can do next.

New Field

13 + 2 =

07455 744454

I manage social media for several clients and lack the will to also run my own. There are reviews but I rarely ever post anything.

%d bloggers like this: