From 9267a19cddcbd939fde446fc9ede8e4ac2444799 Mon Sep 17 00:00:00 2001 From: koenemann Date: Mon, 9 Jan 2017 14:18:01 +0100 Subject: [PATCH] prepare custom header setup --- inc/custom-header.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 inc/custom-header.php diff --git a/inc/custom-header.php b/inc/custom-header.php new file mode 100644 index 0000000..6f5c56d --- /dev/null +++ b/inc/custom-header.php @@ -0,0 +1,36 @@ + get_parent_theme_file_uri( '/img/header.jpg' ), + 'width' => 2000, + 'height' => 1200, + 'flex-height' => true + ) ) ); + + register_default_headers( array( + 'default-image' => array( + 'url' => '%s/img/header.jpg', + 'thumbnail_url' => '%s/img/header.jpg', + 'description' => __( 'Default Header Image', 'understrap' ), + ), + ) ); +} +add_action( 'after_setup_theme', 'understrap_custom_header_setup' ); \ No newline at end of file