From 2bef512355f62ebc6806888c6aaff2ce7fbbc540 Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Mon, 26 Jun 2017 18:47:12 -0400 Subject: [PATCH] _s: Add basic custom logo support See: https://codex.wordpress.org/Theme_Logo Closes #922 --- functions.php | 12 ++++++++++++ header.php | 1 + sass/media/_media.scss | 5 +++++ style.css | 5 +++++ 4 files changed, 23 insertions(+) diff --git a/functions.php b/functions.php index c68a5f5..ded25f5 100644 --- a/functions.php +++ b/functions.php @@ -67,6 +67,18 @@ function _s_setup() { // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); + + /** + * Add support for core custom logo. + * + * @link https://codex.wordpress.org/Theme_Logo + */ + add_theme_support( 'custom-logo', array( + 'height' => 250, + 'width' => 250, + 'flex-width' => true, + 'flex-height' => true, + ) ); } endif; add_action( 'after_setup_theme', '_s_setup' ); diff --git a/header.php b/header.php index da21544..ef0fa42 100644 --- a/header.php +++ b/header.php @@ -26,6 +26,7 @@