Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Divi builder background video to be muted

Tags:

php

wordpress

Hi I actually have a site built with divi builder, and I have integrated the background video, can anyone help as where to locate the file in divi builder and mute the video, as of now it is playing along with the sound.

like image 393
Kabir Ul Althamash Avatar asked Jan 05 '23 08:01

Kabir Ul Althamash


1 Answers

You can try this jQuery solution to mute the background video. Add this bellow code into theme option > integration > code integration > Add code to the < head > of your blog

<script type="text/javascript">
 jQuery(document).ready(function(){
   jQuery(".et_pb_section_video_bg video").prop('muted', true); 
});
</script>

Then let me know the result.

like image 102
Souvik Sikdar Avatar answered Jan 08 '23 08:01

Souvik Sikdar