-
-
Save milapdave/f5b45145ef9dc90e2c42f86b9e6f2a45 to your computer and use it in GitHub Desktop.
WP 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 | |
<div class="logo"> | |
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"> | |
<?php $logo_id = get_theme_mod('custom_logo'); ?> | |
<?php if(!empty($logo_id)) : the_custom_logo(); else : ?> | |
<h3><?php bloginfo( 'name' ); ?></h3> | |
<?php endif; ?> | |
</a> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment