Skip to content

Instantly share code, notes, and snippets.

@vanaf1979
Last active October 20, 2019 10:55
Show Gist options
  • Save vanaf1979/f4d18d13d6154391bf749c1d486c3cbd to your computer and use it in GitHub Desktop.
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/
<?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