-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
31 lines (27 loc) · 904 Bytes
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!doctype html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header>
<div class="container">
<div class="header-logo-container">
<a href="<?=home_url()?>">
<img src="<?=IMAGES?>/svg/logo.svg" class="header-logo">
</a>
</div>
<?php
get_template_part('parts/header', 'navigation-btn');
wp_nav_menu(array(
'container_class' => 'header-navigation-container',
'depth' => 1,
'fallback_cb' => function ($args) { echo '<div></div>'; }, // Fallback to an empty div so the flex layout doesn't get messed up
'menu_id' => 'header-navigation',
'theme_location' => 'header-navigation'
));
?>
</div>
</header>
<main>