#2977
tapio
Participant
  • Topics: 1
  • Replies: 2

Hi, Vinod.
Thanks for your quick response.

I solved this issue by adding ‘theme_location’ option to the wp_nav_menu() function. i.e:

wp_nav_menu( array(
          'theme_location' => 'primary-menu',  // this option
          'menu' => 'Primary Menu',
          'menu_id' => 'primary-menu',
          'depth' => 2,
          'container' => false,
          'menu_class' => 'primary-menu'
     )
);

Regards,
Tapio.