Refine hero and header branding display
This commit is contained in:
+5
-2
@@ -14,10 +14,13 @@ wp_body_open(); ?>
|
||||
<header class="site-header" id="masthead">
|
||||
<div class="header-inner">
|
||||
<div class="site-branding">
|
||||
<?php if ( has_custom_logo() ) { the_custom_logo(); } else { ?>
|
||||
<?php if ( has_custom_logo() ) { ?>
|
||||
<?php the_custom_logo(); ?>
|
||||
<?php // Keep the compact header focused on the site name; the tagline is shown in the hero. ?>
|
||||
<p class="site-description"><?php echo esc_html( get_bloginfo( 'name' ) ); ?></p>
|
||||
<?php } else { ?>
|
||||
<a class="site-title" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
|
||||
<?php } ?>
|
||||
<?php $description = get_bloginfo( 'description', 'display' ); if ( $description ) { ?><p class="site-description"><?php echo esc_html( $description ); ?></p><?php } ?>
|
||||
</div>
|
||||
<button class="icon-button menu-toggle" type="button" data-menu-toggle aria-expanded="false" aria-controls="primary-menu"><span class="screen-reader-text"><?php esc_html_e( 'Toggle menu', 'c1024-2026' ); ?></span><svg class="icon" aria-hidden="true"><use href="#icon-menu"></use></svg></button>
|
||||
<nav class="primary-navigation" aria-label="<?php esc_attr_e( 'Primary menu', 'c1024-2026' ); ?>">
|
||||
|
||||
Reference in New Issue
Block a user