-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
44 lines (23 loc) · 779 Bytes
/
header.php
File metadata and controls
44 lines (23 loc) · 779 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title><?php bloginfo( 'name' )?></title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<?php wp_head();?>
</head>
<body>
<a href="<?php echo home_url();?>"><h1><?php bloginfo( 'name' ) ?></h1></a>
<h2><?php bloginfo( 'description' ) ?></h2>
<?php if(is_front_page()): get_search_form( ); endif?>
<?php
$topnav = array(
'theme_location' => 'top-menu',
'menu_id' => 'primary-menu',
'container' => false,
'depth' => 2,
);
wp_nav_menu( $topnav);
?>
</nav>