Update header.php
This commit is contained in:
parent
5e73bd2cd3
commit
7fe52f676a
15
header.php
15
header.php
|
@ -7,14 +7,6 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
|
||||
<link rel="dns-prefetch" href="//google-analytics.com">
|
||||
|
||||
<style>
|
||||
<?php
|
||||
/**
|
||||
* For better peformance, core styles are inlined
|
||||
*/
|
||||
echo file_get_contents(sprintf('%s/css/core.min.css', get_stylesheet_directory())); ?>
|
||||
</style>
|
||||
<link rel="stylesheet" href="<?php echo get_bloginfo('stylesheet_url') . '?' . filemtime(get_stylesheet_directory() . '/style.css'); ?>">
|
||||
|
||||
<?php wp_head(); ?>
|
||||
|
@ -30,19 +22,18 @@
|
|||
<body <?php body_class(); ?>>
|
||||
<header class="header" role="banner">
|
||||
<div class="container">
|
||||
<a href="<?php bloginfo('url'); ?>" class="logo logo--header">
|
||||
<a href="<?php bloginfo('url'); ?>" class="header__logo">
|
||||
<?php echo is_front_page() ? '<h1>' : ''; ?>
|
||||
<img src="<?php bloginfo('stylesheet_directory'); ?>/img/logo.svg" onerror="this.src='<?php bloginfo('stylesheet_directory'); ?>/img/logo.png'" alt="<?php bloginfo('title'); ?>" />
|
||||
<?php echo is_front_page() ? '</h1>' : ''; ?>
|
||||
</a>
|
||||
|
||||
<a href="#" class="nav-burger js-menu-toggle">
|
||||
<span class="nav-burger__line"></span>
|
||||
<span class="nav-burger__line"></span>
|
||||
<span class="nav-burger__line"></span>
|
||||
</a>
|
||||
<nav role="navigation" class="nav nav--header">
|
||||
<?php wp_nav_menu(['theme_location' => 'header', 'menu_class' => 'nav__list']); ?>
|
||||
<nav role="navigation" class="header__navigation">
|
||||
<?php wp_nav_menu(['theme_location' => 'header', 'menu_class' => 'nav nav--header']); ?>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
|
Loading…
Reference in New Issue