Skip to content

Commit

Permalink
Update header.php
Browse files Browse the repository at this point in the history
Fix navigation brand looking differently on home / post
  • Loading branch information
bumbummen99 authored May 18, 2021
1 parent 2823ab1 commit 047f61c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,7 @@

<!-- Your site title as branding in the menu -->
<?php if ( ! has_custom_logo() ) { ?>

<?php if ( is_front_page() && is_home() ) : ?>

<h1 class="navbar-brand mb-0"><a rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" itemprop="url"><?php bloginfo( 'name' ); ?></a></h1>

<?php else : ?>

<a class="navbar-brand" rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" itemprop="url"><?php bloginfo( 'name' ); ?></a>

<?php endif; ?>


<a class="navbar-brand" rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" itemprop="url"><?php bloginfo( 'name' ); ?></a>
<?php } else {
the_custom_logo();
} ?><!-- end custom logo -->
Expand Down

0 comments on commit 047f61c

Please sign in to comment.