Getting Your Hands Dirty
Actually they are not going to get very dirty, as I have found that you only require 2 simple edits.
In functions.php
Change...
/* Activate native wordpress navigation menu and register a menu location */
add_theme_support('nav_menus');
$avia_config['nav_menus'] = array('avia' => 'Main Menu', 'avia2'=> 'Sub Menu');
foreach($avia_config['nav_menus'] as $key => $value){ register_nav_menu($key, THEMENAME.' '.$value); }
To...
/* Activate native wordpress navigation menu and register a menu location */
add_theme_support('nav_menus');
$avia_config['nav_menus'] = array('avia' => 'Main Menu', 'avia2'=> 'Sub Menu', 'avia3'=> 'Members Menu');
foreach($avia_config['nav_menus'] as $key => $value){ register_nav_menu($key, THEMENAME.' '.$value); }
Then in header.php
Change...
/*
* display the main navigation menu
* check if a description for submenu items was added and change the menu class accordingly
* modify the output in your wordpress admin backend at appearance->menus
*/
$args = array( 'echo'=> false,
'fallback_cb' => 'avia_fallback_menu',
'theme_location' => 'avia',
'menu_class' => 'menu',
'walker' => new avia_description_walker()
);
To...
/*
* display the main navigation menu
* check if a description for submenu items was added and change the menu class accordingly
* modify the output in your wordpress admin backend at appearance->menus
*/
if ( is_user_logged_in() ) {
$args = array( 'echo'=> false,
'fallback_cb' => 'avia_fallback_menu',
'theme_location' => 'avia3',
'menu_class' => 'menu',
'walker' => new avia_description_walker()
);
} else {
$args = array( 'echo'=> false,
'fallback_cb' => 'avia_fallback_menu',
'theme_location' => 'avia',
'menu_class' => 'menu',
'walker' => new avia_description_walker()
);
}
You will then find a 3rd supported Corona Menu within the Wordpress "Appearance - Menus". and you can create a menu and select it from the new drop down list as normal.