Hello,
I am using a child theme of Iconic One Pro.
In my website header, in addition to the primary nav menu, I would like to add more navigation menus that would display above the primary main nav menu in the header as another strip one at a time, depending on the type of user logged in.
I think I need to use the following code to accomplish this:
function register_my_menus() {
register_nav_menus(
array(
‘visitor-menu’ => __( ‘Visitor Menu’, ‘themonic’ ),
‘registered-user-menu’ => __( ‘Registered User Menu’, ‘themonic’)
)
);
}
add_action( ‘after_setup_theme’, ‘register_my_menus’ );
However, when I add the above code to functions.php in the child theme folder, the site does not work.
Should the above code be added ONLY to the original Pro theme’s function.php to work correctly?
Is the child theme override for register_nav_menus() set up?
Can you please clarify the correct way to create multiple menus?
Thanks.