Created
March 29, 2018 19:47
-
-
Save kathrynwp/a2d858153f24c20ba3bb8953021a0739 to your computer and use it in GitHub Desktop.
Twenty Seventeen Child - display video on mobile
This file contains 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 | |
/** | |
* Twenty Seventeen Child Theme functions | |
* | |
* @link https://developer.wordpress.org/themes/basics/theme-functions/ | |
* | |
* @package WordPress | |
* @subpackage Twenty_Seventeen | |
* @since 1.0 | |
*/ | |
/* | |
* Enqueue parent and child theme styles. | |
*/ | |
function twentyseventeenchild_enqueue_styles() { | |
$parent_style = 'twentyseventeen-parent-style'; | |
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'twentyseventeenchild_enqueue_styles' ); | |
/* | |
* Change the minimum screen size to use the video header | |
*/ | |
function twentyseventeenchild_video_size( $settings ) { | |
$settings['minWidth'] = 100; | |
$settings['minHeight'] = 100; | |
return $settings; | |
} | |
add_filter( 'header_video_settings', 'twentyseventeenchild_video_size' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @smjuber - this isn't a support venue, so if you have questions about Twenty Seventeen, please post in the forum:
https://wordpress.org/support/theme/twentyseventeen/