Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Gist for my article: WordPress: Add custom logo support to your theme.
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