Remove Video Download Link in Divi Video Box

, , , ,

So there are times where you want to try to protect the video on a page. Here is the jQuery that you should use.

<script>
jQuery(document).ready(function() {
    if (jQuery('.et_pb_video_box').length !== 0) {
        jQuery(".et_pb_video_box").find('video').attr('controlsList', 'nodownload');
    }
});
</script>

 

Skills

Posted on

June 9, 2021

Submit a Comment

Your email address will not be published.