-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
25 lines (25 loc) · 820 Bytes
/
header.php
File metadata and controls
25 lines (25 loc) · 820 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
<?php defined('ABSPATH') || exit; ?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php if (scratchstart_should_render('skip_link')) : ?>
<a class="skip-link screen-reader-text" href="#main"><?php esc_html_e('Skip to content', 'scratchstart'); ?></a>
<?php endif; ?>
<?php if (scratchstart_should_render('header') && has_nav_menu('header-menu')) : ?>
<header>
<nav>
<?php
wp_nav_menu(array(
'theme_location' => 'header-menu',
'container' => '',
'fallback_cb' => false,
));
?>
</nav>
</header>
<?php endif; ?>