Last active
April 7, 2017 05:14
-
-
Save braginteractive/ce89ed6f5714671f11664711a9dd513e to your computer and use it in GitHub Desktop.
Add Custom Logo Support to WordPress 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
/* | |
* Add custom logo support | |
*/ | |
add_theme_support( 'custom-logo' ); |
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 if( has_custom_logo() ) { | |
the_custom_logo(); | |
} else { ?> | |
<h1 class="navbar-brand mb-0"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment