Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahornby123/5fedd6538c67fd7e1d30a2e5c00a4f40 to your computer and use it in GitHub Desktop.
Save ahornby123/5fedd6538c67fd7e1d30a2e5c00a4f40 to your computer and use it in GitHub Desktop.
Enabling Audio of Youtube video
;(function($) {
if( $('.galleryid-20').length ) {
var email1 = 'David@droneonyorkshire.com';
var email2 = 'Alex@droneonyorkshire.com';
$('.galleryid-20 .gallery-item:nth-of-type(1)').find('.gallery-icon').wrapInner('<a href="mailto:' + email1 + '"></a>');
$('.galleryid-20 .gallery-item:nth-of-type(2)').find('.gallery-icon').wrapInner('<a href="mailto:' + email2 + '"></a>');
}
})(jQuery);
jQuery(function($) {
$('.wp-custom-header video').prop('muted', false);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment