Skip to content

Instantly share code, notes, and snippets.

@seothemes
Created March 31, 2019 23:47
Show Gist options
  • Save seothemes/890e102128ccb1b962281c2fa8dbd1d2 to your computer and use it in GitHub Desktop.
Save seothemes/890e102128ccb1b962281c2fa8dbd1d2 to your computer and use it in GitHub Desktop.
Set breakpoint for custom header video
<?php
add_filter( 'header_video_settings', 'business_header_video_min_width', 10, 1 );
/**
* Change minimum width to show the header video.
*
* @since 1.1.0
*
* @link https://make.wordpress.org/core/2016/11/26/video-headers-in-4-7/
*
* @return array
*/
function business_header_video_min_width( $settings ) {
$settings['minWidth'] = 1025;
return $settings;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment