Genesis Header Nav archived
WordPress plugin that registers a menu location and displays it inside the header for a Genesis Framework child theme.
by Gary Jones · github.com/garyjones/genesis-header-nav · website
★ 68stars
3.3kcomposer installs
17forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/garyjones/genesis-header-nav/archive/refs/heads/develop.zipAlso on Packagist as garyjones/genesis-header-nav:
composer require garyjones/genesis-header-navDeclares an update source (https://github.com/GaryJones/genesis-header-nav), so updates arrive through the plugin's own updater.
From the readme
Genesis Header Nav
WordPress plugin that registers a menu location and displays it inside the header for a Genesis Framework child theme.
Description
The default method of getting a menu to appear in the top right of a site using a child theme of the Genesis Framework, is to add a create a menu in Appearance - Menus, and then place a Custom Menu widget in the Header Right widget area. While this works, it produces markup as seen in screenshot 1, and which has the following problems:
Since the menu is output from a widget, you end up with all of the extraneous widget and widget area markup - in a child theme with HTML5 support, that's the widget area aside, the widget section, and the widget wrap div. In themes without HTML5 support, it's three levels of div elements instead. Not only is this more DOM elements to render (performance), but all markup in the site header is pushing the real page content further down the source; search engines apparently put higher value on content at the top of the source (which is why Genesis ensures primary and secondary sidebars come lower in the source than the main content, irrespective of where they are displayed on screen).
In HTML5 them
Read the full README on GitHub →