Gist for my article: WordPress: Add custom logo support to your theme. https://vanaf1979.nl/wordpress-add-custom-logo-support-to-your-theme/
<?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