Created
May 23, 2017 06:00
-
-
Save pyronaur/667e987f8c0c240b0125b9e855c8105b to your computer and use it in GitHub Desktop.
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 | |
function seventeen_child_video_condition() { | |
return (is_front_page() || ( function_exists('phort_is_portfolio') && phort_is_portfolio() ) ); | |
} | |
// Modify the header arguments | |
// PHP 5.3+ | |
add_filter('twentyseventeen_custom_header_args', function($args){ | |
$args['video-active-callback'] = 'seventeen_child_video_condition'; | |
return $args; | |
}); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment