From 86ded7ef9beacde28e2a82159c81eea085223a75 Mon Sep 17 00:00:00 2001 From: Aaron Yarborough Date: Thu, 20 Dec 2018 20:20:00 +0000 Subject: [PATCH 1/3] Make title tag dynamic based on bloginfo --- header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/header.php b/header.php index 0611e05..599a3fa 100644 --- a/header.php +++ b/header.php @@ -5,7 +5,7 @@ - G-Archive - Graal's player-made content archive + <?php echo get_bloginfo('name'); ?> - <?php echo get_bloginfo('description'); ?> From c9c48918828edfe7d6e6983580ed516a0279556b Mon Sep 17 00:00:00 2001 From: Aaron Yarborough Date: Thu, 20 Dec 2018 20:28:34 +0000 Subject: [PATCH 2/3] Register header menu --- functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions.php b/functions.php index 56f6089..00822c5 100644 --- a/functions.php +++ b/functions.php @@ -50,6 +50,11 @@ add_action('template_redirect', function () { } }); + +add_action('init', function () { + register_nav_menu('header-menu', __('Header Menu')); +}); + // Register Custom Post Type add_action('init', function () { From b56815167243fa9a3064f8c5c8a5cbb516e43085 Mon Sep 17 00:00:00 2001 From: Aaron Yarborough Date: Thu, 20 Dec 2018 20:28:49 +0000 Subject: [PATCH 3/3] Header menu styles --- header.php | 19 ++++++++++++++----- style.css | 7 ++++--- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/header.php b/header.php index 599a3fa..f54fc5c 100644 --- a/header.php +++ b/header.php @@ -12,15 +12,15 @@ >
- ID !== 0): ?> + ID !== 0) : ?> user_login ?> Logout - + Login
@@ -53,14 +53,23 @@
diff --git a/style.css b/style.css index 33f38e4..fa1098e 100644 --- a/style.css +++ b/style.css @@ -52,12 +52,13 @@ a:hover { color: #111; } -.gar-header-nav { +.gar-header-nav ul { margin: 20px 0; } -.gar-header-nav li { +.gar-header-nav ul li { margin: 0 10px; + display: inline-block; } #postGrid .gar-post-box { @@ -192,7 +193,7 @@ pre { .gar-userbox { position: absolute; - right: 10%; + right: 8%; padding: 5px 15px; background-color: #111; top: 0;