Advertisement
brooklyndesignstudio

Divi Video Module Settings

Nov 11th, 2020
1,211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- Loop Divi Video Module -->
  2. <script>
  3. jQuery(document).ready(function() {
  4.     if (jQuery('.divi-loop .et_pb_video_box').length !== 0) {
  5.         jQuery('.lwp-video-autoplay .et_pb_video_box').find('video').prop('muted', true);
  6.         jQuery(".divi-loop .et_pb_video_box").find('video').attr('loop', 'loop');
  7.         jQuery(".divi-loop .et_pb_video_box").find('video').attr('playsInline', '');
  8.  
  9.         jQuery(".divi-loop .et_pb_video_box").each(function() {
  10.             jQuery(this).find('video').get(0).play();
  11.         });
  12.         jQuery('.divi-loop .et_pb_video_box').find('video').removeAttr('controls');
  13.     }
  14. });
  15. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement