Where is the Javascript attribute window._wpCustomHeaderSettings defined?
It’s defined via wp_localize_script() that’s called by the_custom_header_markup(): wp_localize_script( ‘wp-custom-header’, ‘_wpCustomHeaderSettings’, get_header_video_settings() ); So if you want to override the values/settings using JavaScript, then you can hook to wp_print_footer_scripts and add your script like so: add_action( ‘wp_print_footer_scripts’, function(){ if ( wp_script_is( ‘wp-custom-header’ ) ) : ?> <script> if ( window._wpCustomHeaderSettings ) { _wpCustomHeaderSettings.minHeight = 0; … Read more