Created
March 15, 2016 20:52
-
-
Save lots0logs/66426a98f156484b2bbc to your computer and use it in GitHub Desktop.
WordPress :: Divi Builder :: Background Videos :: Mute a video's audio.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
(function($) { | |
$(document).ready(function() { | |
var $videos = $('.et_pb_section_video_bg video'); | |
$videos.each(function() { | |
var $video = $(this)[0]; | |
$video.setMuted(); | |
}); | |
}); | |
})(jQuery); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@daibangcanhcut Thank you, It worked like a charm.