Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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
You can’t perform that action at this time.