$( document ).ready( function() { $( document ).on( 'wp-custom-header-video-loaded', function()How can I add the custom script from { $("#wp-custom-header-video").attr('autoplay',false); }); });this answer to my site to stop the custom video header from autoplaying?
$( document ).ready( function() {
$( document ).on( 'wp-custom-header-video-loaded', function() {
$("#wp-custom-header-video").attr('autoplay',false);
});
});