From b37bfd8e29fbe3fee1d800e58740fe7614fdee11 Mon Sep 17 00:00:00 2001 From: Tammie Date: Wed, 9 Mar 2016 23:01:53 +0000 Subject: [PATCH] Twenty Fifteen: add support for site logos Fixes #35944 Props @iamtakashi, @celloexpressions, @drebbits.web git-svn-id: https://develop.svn.wordpress.org/trunk@36913 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyfifteen/functions.php | 8 ++++ .../themes/twentyfifteen/header.php | 2 + .../twentyfifteen/inc/template-tags.php | 17 ++++++++ src/wp-content/themes/twentyfifteen/style.css | 41 +++++++++++++++++++ 4 files changed, 68 insertions(+) diff --git a/src/wp-content/themes/twentyfifteen/functions.php b/src/wp-content/themes/twentyfifteen/functions.php index e109a2bcff..7daeefae7e 100644 --- a/src/wp-content/themes/twentyfifteen/functions.php +++ b/src/wp-content/themes/twentyfifteen/functions.php @@ -103,6 +103,14 @@ function twentyfifteen_setup() { 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat' ) ); + /* + * Enable support for custom logo. + * + * @since Twenty Fifteen 1.5 + */ + add_image_size( 'twentyfifteen-logo', 248, 248 ); + add_theme_support( 'custom-logo', array( 'size' => 'twentyfifteen-logo' ) ); + $color_scheme = twentyfifteen_get_color_scheme(); $default_color = trim( $color_scheme[0], '#' ); diff --git a/src/wp-content/themes/twentyfifteen/header.php b/src/wp-content/themes/twentyfifteen/header.php index e415915c59..28de34ed9f 100644 --- a/src/wp-content/themes/twentyfifteen/header.php +++ b/src/wp-content/themes/twentyfifteen/header.php @@ -29,6 +29,8 @@