How Do I Add Multiple Navigation Menus in WordPress?

Adding multiple navigation menus in WordPress is a fairly easy task. To add a new menu, first create a new file in your theme called menu.

php. Within this file, you will need to include the following:.

array( ‘class’ => ‘multi-level-menu’, ), ); }

Now, you can add your menu entries within the my_theme_functions() function. To create a new level, simply add the following code:

array( ‘class’ => ‘multi-level-menu’, ), ); } // Add your theme specific code here

To add an item to an existing level, simply use the following code:

To remove an item from an existing level, use the following code:

Finally, you will need to add a link to your menu in your header. To do this, add the following code to your header.php file:

  • “>No Posts Found

    To add an existing menu item to a new level, use the following code:

  • “>Level 2
  • ‘; else: echo ‘

  • “>No Posts Found

    To add an existing menu item to an existing level, use the following code:

    Finally, you can add a menu item to the bottom of the menu using the following code: