Add wp_head, body_class, hamburger toggle markup

This commit is contained in:
ai-bot committed 2026-10-14 09:25:43 +00:00
1 parent 49d9c79b8e
commit 1154509dfd
1 file changed
+8 -6
+8 -6
View File
@@ -2,27 +2,29 @@
<html <?php language_attributes(); ?>> <html <?php language_attributes(); ?>>
<head> <head>
<meta charset="<?php bloginfo("charset"); ?>"> <meta charset="<?php bloginfo("charset"); ?>">
<title><?php bloginfo("name"); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="<?php bloginfo("stylesheet_url"); ?>" /> <link rel="stylesheet" href="<?php bloginfo("stylesheet_url"); ?>" />
<link rel="icon" href="<?php echo get_site_icon_url(); ?>"> <?php wp_head(); ?>
</head> </head>
<body> <body <?php body_class(); ?>>
<header> <header>
<nav> <nav>
<div id="nav-grid"> <div id="nav-grid">
<div class="logo"> <div class="logo">
<a href="<?php echo home_url(); ?>"> <a href="<?php echo esc_url(home_url("/")); ?>">
<img src="<?php echo get_site_icon_url(); ?>" /> <img src="<?php echo esc_url(get_site_icon_url()); ?>" alt="<?php echo esc_attr(get_bloginfo("name")); ?>" />
<span><?php bloginfo("name"); ?></span> <span><?php bloginfo("name"); ?></span>
</a> </a>
</div> </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 <?php
wp_nav_menu( array( wp_nav_menu( array(
"theme_location" => "header-menu", "theme_location" => "header-menu",
"container_class" => "header-menu-class" ) ); "container_class" => "header-menu-class" ) );
?> ?>
</div> </div>
</nav> </nav>
</header> </header>