🎁 Get Up To 70% Off During Divi Summer Sale! Get Divi

Remove Download Option from Video in Divi Video Module

Blog, Divi Tutorial | 4 comments

In this article I will share the steps on how you can remove the download option from self hosted videos in the Divi Video Module.

To clarify I am referring to the download option in the below screenshot on self hosted videos.

Download link in self hosted video module

By the end of the article you will have removed the Download link from the menu. This will only leave the Picture in picture option in it. Just like the screenshot below.

Download link removed from video

1. Add Custom CSS Class to Remove Download Button

Removing the download button from the video is not too complicated. The first step is to add a custom css class to the video module. We add a css class to the video module so we can catch it separately and not affect any other content on your website.

Open the Video Module Settings > Advanced > CSS ID & Classes > CSS Class and add the class lwp-no-download.

If you are not sure where to add the class then please see the screenshot below.

CSS Class to remove download link from video module

2. Add jQuery to Remove Download Button from Videos

The next step is to add a snippet of jQuery to your website. The code snippet will remove the download link from all the videos that have the css class lwp-no-download.

Go to your WordPress Dashboard > Divi > Theme Options > Integration > Add code to the < head > of your blog and then add the following code.

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

Please have a look at the screenshot below to understand where to add the code if you are not sure.

Divi Theme Options jquery code to remove download link

That’s it! Now every video on your website with the custom css class will not show the Download link in their options.

Next you might can checkout one of the articles below.

  1. How to add a Call To Action Button to Divi Menu
  2. How to Autoplay Videos in Divi Video Module And Hide Controls

Leave a comment below if you have any questions. Don’t forget to subscribe to the Newsletter to receive the latest tutorials in your inbox.

About the Author

The author of learnhowwp.com is a WordPress expert with over a decade of experience, specializing in Divi. Since 2014, they have built numerous WordPress sites and developed 8 Divi plugins with over 30,000 active installations. A former support team member at Elegant Themes, they launched learnhowwp.com in 2020 to share their in-depth knowledge of Divi. Now home to over 65+ articles dedicated to Divi tutorials and insights

4 Comments

  1. Dave

    works as suggested. A really simple fix. Many thanks

    Reply
  2. Martin

    Hi
    thank you for this post but unfortunately this doesn’t work for me.
    It disables the Download button on Chrome, but it is still possible to download videos with rightclick in Firefox, Chrome & on mobile (Chrome Android), holding on my video will allow download

    Reply
    • learnhowwp.com

      The codes add a nodownload attribute to the video. Unfortunately if some browsers do not process it and still show the download link then there is not much we can do.

      Reply
    • javier

      Hola MartĂ­n, aplicando Ă©ste mĂ©todo si funciona. Aplica exactamente el mismo mĂ©todo que se explicĂł aquĂ­ y luego debes instalar el plugin llamado WP Content Copy Protection & No Right Click, Ă©ste evita poder dar click derecho lo uso mucho para que no se descarguen mis imĂĄgenes y cualquier contenido. ÂĄPRUÉBALO!

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Our Plugins Are Already Being Used On 30,000+ Amazing Websites.

We offer a 30 Day Money Back Guarantee on all plugins, so joining is Risk-Free!