3 * The header for our theme
5 * This is the template that displays all of the <head> section and everything up until <div id="content">
7 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
10 * @subpackage Twenty_Seventeen
16 <html <?php language_attributes(); ?> class="no-js no-svg">
18 <meta charset="<?php bloginfo( 'charset' ); ?>">
19 <meta name="viewport" content="width=device-width, initial-scale=1">
20 <link rel="profile" href="http://gmpg.org/xfn/11">
25 <body <?php body_class(); ?>>
26 <div id="page" class="site">
27 <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyseventeen' ); ?></a>
29 <header id="masthead" class="site-header" role="banner">
31 <?php get_template_part( 'template-parts/header/header', 'image' ); ?>
33 <?php if ( has_nav_menu( 'top' ) ) : ?>
34 <div class="navigation-top">
36 <?php get_template_part( 'template-parts/navigation/navigation', 'top' ); ?>
38 </div><!-- .navigation-top -->
41 </header><!-- #masthead -->
44 // If a regular post or page, and not the front page, show the featured image.
45 if ( has_post_thumbnail() && ( is_single() || ( is_page() && ! twentyseventeen_is_frontpage() ) ) ) :
46 echo '<div class="single-featured-image-header">';
47 the_post_thumbnail( 'twentyseventeen-featured-image' );
48 echo '</div><!-- .single-featured-image-header -->';
52 <div class="site-content-contain">
53 <div id="content" class="site-content">