_s: Add basic custom logo support

See: https://codex.wordpress.org/Theme_Logo

Closes #922
This commit is contained in:
David A. Kennedy 2017-06-26 18:47:12 -04:00
parent f756b98df3
commit 2bef512355
4 changed files with 23 additions and 0 deletions

View file

@ -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' );