Update on October 08, 2016: Also see https://sridharkatakam.com/split-navigation-menu-items-logos-left-right-genesis/
In Genesis Facebook group a user wanted to set up a fixed primary navigation and below that the site header having another nav menu split by a logo.
In this tutorial we shall
- relocate primary navigation menu from below the header to above and make it fixed
- set up inline image logo controllable via the customizer and hide it for screen widths above 1023px
- create a custom
headermenu location and assign a menu to it
- show the split menu assigned to header theme location inside .site-header
- use WP Nav Plus to inject the logo (set in customizer) in between the menu items of header nav
At 1023px and below, the split (header) menu's items will be moved above the primary nav's - all collapsed into a hamburger menu. The inline logo will appear below the menu icon.
While the tutorial has been written for Genesis Sample child theme it should work with adjustments in any Genesis child theme.
Install and activate WP Nav Plus.
Edit child theme's functions.php
a) Comment out or delete
add_theme_support( 'custom-header', array( 'width' => 600, 'height' => 160, 'header-selector' => '.site-title a', 'header-text' => false, 'flex-height' => true, ) );
add_theme_support( 'genesis-menus' , array( 'primary' => __( 'After Header Menu', 'genesis-sample' ), 'secondary' => __( 'Footer Menu', 'genesis-sample' ) ) );
To view the full content, please sign up for the membership.
Already a member? Log in below or here.