-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
32 lines (22 loc) · 1.1 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<title><?php bloginfo('name'); ?><?php wp_title(' | '); ?></title>
<meta name="description" content="<?php bloginfo('description'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css">
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/styles.css">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!--[if lt IE 9]><script src="<?php bloginfo('template_directory'); ?>/js/html5shiv.js" media="all"></script><![endif]-->
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<header role="banner">
<h1><a href="<?php echo home_url(); ?>/" rel="home"><?php bloginfo('name');?></a></h1>
<nav role="navigation">
<?php wp_nav_menu(array('theme_location' => 'primary')); ?>
</nav>
</header>
<!-- If you want to use an element as a wrapper, i.e. for styling only, then <div> is still the element to use -->
<div class="wrap">