In one of my current Genesis customization projects, the requirement is to give the site owner an easy way to select her desired WordPress menu which would appear in the header area of Altitude Pro. By default a menu assigned to Primary Navigation location at Appearance > Menus will appear site-wide.
wp_nav_menu_argsfilter can be used to assign a menu conditionally in Primary Navigation Menu location. We shall retrieve the ID of custom menu selected by the user for a specific Page or Post via Genesis Simple Menus and replace the Primary menu with that. To illustrate, let's say here's how the menu in header appears site-wide: Now after installing and activating Genesis Simple Menus, for a specific Page a custom menu is set for Secondary Navigation: After adding the code below, here's how this Page appears on the front-end: Add the following in Altitude Pro's functions.php:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.