Last active
October 20, 2019 10:55
-
-
Save vanaf1979/f4d18d13d6154391bf749c1d486c3cbd to your computer and use it in GitHub Desktop.
Gist for my article: WordPress: Add custom logo support to your theme. https://vanaf1979.nl/wordpress-add-custom-logo-support-to-your-theme/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function config_custom_logo() { | |
$defaults = array( | |
'height' => 200, | |
'width' => 200, | |
'flex-height' => true, | |
'flex-width' => true, | |
'header-text' => array(), | |
); | |
add_theme_support( 'custom-logo' , $defaults ); | |
} | |
add_action( 'after_setup_theme' , 'config_custom_logo' ); | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment