Select Page
Advertisements

To remove the related videos that follow a Youtube video, add “pa-hide-related-videos” to the Video Module CSS class. Then, enter the following script in the Divi / Theme Options / Integration / Add code to the < head > of your blog:

<script>
jQuery(document).ready(function($ ) {
// add '&rel=0' to end of all YouTube video URL's
// to prevent displaying related videos
$('.pa-hide-related-videos iframe').attr( "src", function( i, val ) {
return val + '&rel=0';
});
});
</script>