Skip to content

Instantly share code, notes, and snippets.

@rajucs
Created April 27, 2020 18:59
Show Gist options
  • Save rajucs/06c30318c35aef1efe7c18adc19c1431 to your computer and use it in GitHub Desktop.
Save rajucs/06c30318c35aef1efe7c18adc19c1431 to your computer and use it in GitHub Desktop.
<header id="masthead" class="site-header">
<div class="site-branding">
<?php
the_custom_logo();
if ( is_front_page() && is_home() ) :
?>
<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;
$digital_school_management_description = get_bloginfo( 'description', 'display' );
if ( $digital_school_management_description || is_customize_preview() ) :
?>
<p class="site-description"><?php echo $digital_school_management_description; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
<?php endif; ?>
</div><!-- .site-branding -->
<nav id="site-navigation" class="main-navigation">
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', 'digital-school-management' ); ?></button>
<?php
wp_nav_menu(
array(
'theme_location' => 'menu-1',
'menu_id' => 'primary-menu',
)
);
?>
</nav><!-- #site-navigation -->
</header><!-- #masthead -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment