Adding multiple secondary menus to Iconic One Pro header

Home Forums Iconic One Pro Support Adding multiple secondary menus to Iconic One Pro header

This topic contains 1 reply, has 2 voices, and was last updated by  Themonic-Support 7 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4195

    alpha9themonic
    Participant

    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.

    #4196

    You do not have permission to view this content.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.