Add wp_head, body_class, hamburger toggle markup
This commit is contained in:
1 parent
49d9c79b8e
commit
1154509dfd
1 file changed
+8
-6
+8
-6
@@ -2,27 +2,29 @@
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo("charset"); ?>">
|
||||
<title><?php bloginfo("name"); ?></title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="<?php bloginfo("stylesheet_url"); ?>" />
|
||||
<link rel="icon" href="<?php echo get_site_icon_url(); ?>">
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<body <?php body_class(); ?>>
|
||||
<header>
|
||||
<nav>
|
||||
<div id="nav-grid">
|
||||
<div class="logo">
|
||||
<a href="<?php echo home_url(); ?>">
|
||||
<img src="<?php echo get_site_icon_url(); ?>" />
|
||||
<a href="<?php echo esc_url(home_url("/")); ?>">
|
||||
<img src="<?php echo esc_url(get_site_icon_url()); ?>" alt="<?php echo esc_attr(get_bloginfo("name")); ?>" />
|
||||
<span><?php bloginfo("name"); ?></span>
|
||||
</a>
|
||||
</div>
|
||||
<input type="checkbox" id="nav-toggle" class="nav-toggle" />
|
||||
<label for="nav-toggle" class="nav-toggle-label" aria-label="<?php esc_attr_e("Meny", "super-simple-wp-theme"); ?>">
|
||||
<span></span>
|
||||
</label>
|
||||
<?php
|
||||
wp_nav_menu( array(
|
||||
"theme_location" => "header-menu",
|
||||
"container_class" => "header-menu-class" ) );
|
||||
?>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
Reference in new issue
Block a user