Login to wp-admin and in Divi / Integration / Add code to the < head > of your blog
Add the following code:
<script type="text/javascript">
(function($) {
$(window).load(function() {
// Disable YouTube Related Videos
$('.fluid-width-video-wrapper').each(function() {
var src = $(this).find('iframe').attr('src');
$(this).find('iframe').attr('src', src + '&rel=0');
});
});
$(document).ready(function() {
// Open project promo in new tab.
$('.single-project .et_pb_promo').find('a').attr('target', '_blank');
});
})(jQuery);
</script>
0 Comments