forked from rjmccollam/Bare-WP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
47 lines (27 loc) · 1018 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width">
<?php wp_head(); ?>
<?php the_field('header_scripts', 'option'); ?>
<style>
<?php the_field('custom_css', 'option'); ?>
</style>
</head>
<body <?php body_class(); ?>>
<?php the_field('body_scripts', 'option'); ?>
<header class="header">
<a href="<?php bloginfo('url'); ?>" class="logo"><img src="<?php bloginfo('template_url'); ?>/images/logo.svg" title="<?php the_field('logo_title', 'option'); ?>" alt="<?php the_field('logo_alt_text', 'option'); ?>"></a>
<a class="menu-toggle" href="#">☰ Menu</a>
<?php
$defaults = array(
'theme_location' => 'main_menu',
'container' => 'nav',
'container_class' => 'nav',
'menu_class' => ''
);
wp_nav_menu( $defaults );
?>
</header><!-- end header -->
<?php get_template_part('partials/mobile-nav'); ?>