Created
March 31, 2019 23:47
-
-
Save seothemes/890e102128ccb1b962281c2fa8dbd1d2 to your computer and use it in GitHub Desktop.
Set breakpoint for custom header video
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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