Created
September 13, 2018 07:33
-
-
Save humayunahmed8/c1159a11d16c0b90e06def945d1738f7 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