Fail to un-mute the header video!

Hi Team,

I just purchased and installed Sidney Pro.

I tried to un-mute the header video in main.js, but fail:

var muteVideo = function() {
	$('.video-container video').prop('muted', false);
}

Please help.

Spencer

Hello there,

That snippet is no longer working since custom video header added as part of WordPress core code starting from version 4.7. Please use this code instead:

    jQuery(function($) {

      $(window).on('load', function() {
        $('.wp-custom-header video').prop('muted', false);
      });

    }); 

Regards,
Kharis

It works perfectly! Thanks for your help!.:grinning:

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis