You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-7Lines changed: 25 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ The default method of getting a menu to appear in the top right of a site using
11
11
12
12
> "_I can't think of any good reason to use an aside in a header... what the hell would it be contextually related to? The logo? lol_" - **Robert Neu**
13
13
14
-
This plugin registers a new menu location called Header and, if a menu is assigned to it, displays it before the Header Right area. If you don't have any widgets in the Header Right area, then Genesis ensures that none of that widget area markup is output, so you end up with code like screenshot 2. If you do want a widget in the Header Right area, that's fine - it can be positioned and styled as you want, without negatively affecting the navigation menu as well.
14
+
This plugin registers a new menu location called Header and, if a menu is assigned to it, displays it after the Header Right area. If you don't have any widgets in the Header Right area, then Genesis ensures that none of that widget area markup is output, so you end up with code like screenshot 2. If you do want a widget in the Header Right area, that's fine - it can be positioned and styled as you want, without negatively affecting the navigation menu as well.
15
15
16
16
## Screenshots
17
17
@@ -24,7 +24,8 @@ _Screenshot 1: Markup using Custom Menu widget. Note the `aside`, `section` and
24
24
_Screenshot 2: Markup using this plugin. `nav` is a sibling element to the title area `div`._
25
25
26
26
## Requirements
27
-
* WordPress 3.0+
27
+
* PHP 5.3+
28
+
* WordPress 3.9+
28
29
* Genesis 2.1+
29
30
30
31
## Installation
@@ -65,6 +66,10 @@ Once activated, head to Appearance -> Menus. Create a menu as usual, and assign
65
66
66
67
The hook that filters the menu was called `genesis_do_header_nav` but is now called `genesis_header_nav` due to using the `genesis_header_nav()` function in Genesis 2.1.
67
68
69
+
**2.0.0:** Custom language files previously loaded from (example) `WP_LANG_DIR . '/genesis-header-nav/genesis-header-nav-en_GB.po'` now need to be placed at `WP_LANG_DIR . '/plugins/genesis-header-nav-en_GB.po'`, as per language packs.
70
+
71
+
**2.0.0:** This plugin uses PHP namespaces, so you'll need PHP 5.3+ powering your site.
72
+
68
73
## Customising
69
74
70
75
### CSS
@@ -83,14 +88,21 @@ Adjust the width as needed to allow enough space for your title area and menu it
83
88
84
89
### Priority
85
90
86
-
The plugin includes a `genesis_header_nav_priority` filter, with a default value of 12. Use a value of 6-9 to add the nav before the title + widget area, or 11-14 to add it after. If you want to add it in between, you'll need to remove and re-build `genesis_do_header()` function so that the output of the widget area is in a different function that can be hooked to a later priority.
91
+
The plugin includes a `genesis_header_nav_priority` filter, with a default value of `12`. Use the following values to reposition the nav accordingly:
92
+
93
+
* Before the `<header>` element, inside the `.site-container`: 0-4
94
+
* Before the title + widget area: 5-9
95
+
* After the title + widget area: 10-14
96
+
* After the `<header>` element: 15+
97
+
98
+
If you want to add it in between the title and widget area, you'll need to unhook and re-build `genesis_do_header()` function so that the output of the widget area is in a different function that can be hooked to a later priority.
87
99
88
-
To add the nav before the title + widget area markup in the source, you can use the following:
100
+
As an example, to add the nav before the title + widget area markup in the source, you can use the following:
0 commit comments