From 1469cd7f024695d1703f21c58e64b83befc1e8e3 Mon Sep 17 00:00:00 2001 From: ai-bot Date: Wed, 14 Oct 2026 08:33:37 +0000 Subject: [PATCH] Rewrite header.php for 2.0.0 - Add wp_head(), body_class() and wp_body_open(). - Drop the hardcoded ; title-tag now handles it. - Add a skip link as the first element in <body>. - Wrap the header in <header class="site-header"> and the menu in <nav class="site-nav">. The existing #nav-grid and .header-menu-class hooks are untouched. - Skip the icon <link> and the logo <img> when there is no site icon, and give the logo image an empty alt (the site name text follows it in the same link, so the image is decorative). - Open <main id="main"> after the header. - Keep the viewport meta tag. --- header.php | 69 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 43 insertions(+), 26 deletions(-) diff --git a/header.php b/header.php index 0fae21a..8624ef8 100644 --- a/header.php +++ b/header.php @@ -1,28 +1,45 @@ +<?php +/** + * Site header. + * + * @package Super_Simple_WP_Theme + */ + +$sswt_site_icon = get_site_icon_url(); +?> <!DOCTYPE html> <html <?php language_attributes(); ?>> - <head> - <meta charset="<?php bloginfo("charset"); ?>"> - <title><?php bloginfo("name"); ?> - - " /> - - - -
- -
+ + + + + + + + +> + + + +