-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathheader.php
39 lines (36 loc) · 1.46 KB
/
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
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="wrapper">
<header>
<div class="row">
<div class="col-6 col-s-6 logo-flex">
<?php
if ( function_exists( 'the_custom_logo' ) && has_custom_logo() ) {
the_custom_logo();
} else { /*Link to homepage */ ?>
<h1><a href="/" title="<?php bloginfo('name'); ?>"><?php echo bloginfo('name'); ?></a></h1>
<?php } ?>
</div>
<div class="col-6 col-s-6 menu-flex">
<div class="mobile-menu">
<span class="open__burger"><img src="<?php echo get_template_directory_uri(); ?>/images/menu.svg" alt="Menu"/>Menu</span>
<span class="close__burger"><img src="<?php echo get_template_directory_uri(); ?>/images/menu_close.svg" alt="Close"/>Close</span>
</div>
</div>
</div>
<nav id="toggleMyMenu" style="display: none;">
<?php
wp_nav_menu( array (
'theme_location' =>
'my-custom-menu', 'container_class' =>
'custom-menu-class'));
?>
</nav>
</header>