Created
October 13, 2017 08:22
-
-
Save kirasiris/419c17142d3daad816acc30cdbc96b93 to your computer and use it in GitHub Desktop.
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 | |
//This goes in your functions | |
add_theme_support('custom-logo'); | |
?> | |
<?php | |
//This goes in your html elements | |
if(has_custom_logo()) : ?><?php the_custom_logo(); ?><?php else : ?><?php bloginfo('name'); | |
?> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment