-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
68 lines (53 loc) · 1.66 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php esc_attr(bloginfo( 'charset' )); ?>">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="pingback" href="<?php esc_url(bloginfo( 'pingback_url' )); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class( 'class-name' ); ?>>
<!-- Site branding-->
<div id="Home">
<?php
// check if the primary navigation menu has been set
if (has_nav_menu('primary')) {
?>
<!-- icon for navigation display -->
<div class="slicknav">
<a href="#" aria-haspopup="true" tabindex="0" class="menu-button">
<span class="menu-icon">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</span>
</a>
</div>
<nav>
<?php
/* get the navigation menu for the headers */
wp_nav_menu(
array(
'theme_location' => 'primary',
'menu_class' => 'main-nav',
'before' => '<div class="nav-item">',
'after' => '</div>'
)
);
?>
</nav>
<?php } ?>
<main class="content">
<!-- header styling -->
<div class="header" style="background-image:url(<?php esc_url(header_image()); ?>)">
<div class="heading">
<h1 class="site-title"><a href="<?php echo esc_url(site_url()); ?>"><?php echo esc_html(get_bloginfo('name')); ?></a></h1>
<p class="site-description"><?php echo esc_html(get_bloginfo('description')); ?></p>
</div>
</div>
<div class="down">
<a href="#" aria-haspopup="true" tabindex="0" class="menu-button">
<span class="fa fa-chevron-circle-down" aria-hidden="true"></span>
</a>
</div>