• how to have two different menus in two separate headers in a wordpress site.
    Like for example if in an ecommerce site we want to have
    ‘A’ menu for client site [ header-client.php ] and
    ‘B’ menu for admin site [ header-admin.php ].

    How can we achieve this.

    Please help. It’s very urgent.

Viewing 1 replies (of 1 total)
  • Thread Starter Suneet

    (@suneetpant)

    Hi there, I found solution to my own problem. All that needs to be done is to put ‘theme_location’ => ‘secondary’ in wp_nav_menu().

    But one thing is not clear that using wp_emember_is_member_logged_in() you can check
    1. if the member is logged then ‘theme_location’ => ‘primary’ else
    2. if the member has not logged in then ‘theme_location’ => ‘secondary’.

    [This is my Query]
    But what will be done in case if you want to check which one is logged in, so that on the basis of this only menu should be displayed :

    1. if client has logged in then go for ‘theme_location’ => ‘primary’ and
    2. if Admin has logged in then go for ‘theme_location’ => ‘secondary’.

    Please help me??

Viewing 1 replies (of 1 total)
  • The topic ‘Two different menus in seperate headers’ is closed to new replies.