forked from mirror/_s
only output tagline markup when tagline exists or is_customize_preview
This commit is contained in:
parent
f6ddaaa21e
commit
9bfae01ae4
|
@ -30,8 +30,12 @@
|
|||
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
||||
<?php else : ?>
|
||||
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
|
||||
<?php endif;
|
||||
|
||||
$description = get_bloginfo( 'description', 'display' );
|
||||
if ( $description || is_customize_preview() ) : ?>
|
||||
<p class="site-description"><?php echo $description; ?></p>
|
||||
<?php endif; ?>
|
||||
<p class="site-description"><?php bloginfo( 'description' ); ?></p>
|
||||
</div><!-- .site-branding -->
|
||||
|
||||
<nav id="site-navigation" class="main-navigation" role="navigation">
|
||||
|
|
Reference in New Issue