Fixed custom logo error in header

This commit is contained in:
Jessica Jean 2016-09-19 17:13:27 -07:00 committed by GitHub
parent 1c06c9ecd9
commit 20208211a9
1 changed files with 5 additions and 2 deletions

View File

@ -47,7 +47,11 @@
</button>
<!-- Your site title as branding in the menu -->
<a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php if ( !has_custom_logo() ) { bloginfo( 'name' ) } else { the_custom_logo() } ?></a>
<?php if (!has_custom_logo()) { ?>
<a class="navbar-brand" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<?php bloginfo( 'name' ); ?>
</a>
<?php } else { the_custom_logo(); } ?><!-- end custom logo -->
</div>
@ -64,7 +68,6 @@
); ?>
</div> <!-- .container -->
</nav><!-- .site-navigation -->