Created
November 29, 2017 22:38
-
-
Save richtabor/c0b111b4f200fedc1655f763ed967e9e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if ( ! function_exists( 'tabor_site_logo' ) ) : | |
/** | |
* Output an <img> tag of the site logo. | |
*/ | |
function tabor_site_logo() { | |
if ( has_custom_logo() ) { | |
echo '<div class="site-logo" itemscope itemtype="http://schema.org/Organization">'; | |
the_custom_logo(); | |
echo '</div>'; | |
} else { | |
printf( '<h1 class="h3 site-title" itemscope itemtype="http://schema.org/Organization"><a href="%1$s" rel="home" itemprop="url">%2$s</a></h1>', esc_url( home_url( '/' ) ), esc_html( get_bloginfo( 'name' ) ) ); | |
} | |
} | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment