Okay
  Public Ticket #142122
Mute HTML5 Video
Closed

Comments

  • laeti started the conversation
    Hello. I do not have any video editing software, and I would like to mute the sound on my video. Are you able to provide a quick hack so that I can mute the audio using either JS or HTML5? Many Thanks
  • laeti replied

    p.s - this is a full screen video I've added using the Nectar Slider.
    (its on the homepage)

    thanks

  •  991
    ThemeNectar replied

    Hey Laeti!

    Open up the functions.php file and run a search for this to end up at the right place:

    if($background_type == 'video_bg') {

    scrolling down slightly from there you'll see this:

    <video class="slider-video" width="1800" height="700" '.$poster_markup.' controls="controls" preload="auto" loop autoplay>';

    just change it to this:

    <video class="slider-video" width="1800" height="700" '.$poster_markup.' controls="controls" preload="auto" loop autoplay muted>';

    Cheers :)

  • laeti replied

    Lovely - thank you!