How To Hide Related YouTube Videos In Divi
How To Hide Related YouTube Video Suggestions In Divi
Add a class to your video modules where you want to hide the related YouTube videos.
Go the Video Module settings>Advanced tab>CSS Classes & IDs toggle>and paste “pa-hide-related-videos” into the CSS Class field.
Add the follow code snippet to the Divi>Theme Options>Integrations>Add code to the < head > of your blog
Make It Global Sitewide
If you want this to take effect in any Video Module on your site then it’s easier to target them all at once. This eliminates the need to add the CSS class from step 1.
You Did It! Good job!
Nice job, you have just edited the YouTube embed link with jQery, which is a type of code that edits things like HTML. But that’s the boring part, the best part is that you now can use the Divi Video Module without worrying about it showing other people’s videos.
Did you appreciate this post?
If you find value in this type of post, please subscribe because we have tons of tutorials in progress to be posted!