diff --git a/functions.php b/functions.php index f3c1416..8e5e925 100644 --- a/functions.php +++ b/functions.php @@ -41,6 +41,21 @@ function roots_setup() { // http://codex.wordpress.org/Post_Formats // add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat')); + // http://codex.wordpress.org/Function_Reference/add_custom_image_header + if (!defined('HEADER_TEXTCOLOR')) { define('HEADER_TEXTCOLOR', ''); } + if (!defined('NO_HEADER_TEXT')) { define('NO_HEADER_TEXT', true); } + if (!defined('HEADER_IMAGE')) { define('HEADER_IMAGE', get_template_directory_uri() . '/img/logo.png'); } + if (!defined('HEADER_IMAGE_WIDTH')) { define('HEADER_IMAGE_WIDTH', 300); } + if (!defined('HEADER_IMAGE_HEIGHT')) { define('HEADER_IMAGE_HEIGHT', 75); } + + function roots_custom_image_header_site() { } + function roots_custom_image_header_admin() { ?> + + __('Primary Navigation', 'roots'), diff --git a/header.php b/header.php index f36b8a2..d423565 100644 --- a/header.php +++ b/header.php @@ -34,7 +34,7 @@