The secondary menu is placed below the header bar and can be used on specific pages where you need another level of organization for your content. We’re using on the demo for organizing the User Account area:
Step 1 — Create the “Secondary” Menu
Note that you don’t need to assign it yet to any menu location, as we will do this on the next steps.
Step 2 — Add Items to the Menu
From the left section, you can add links to the desired pages: My Account, Listings Dashboard, Add Listing, Bookmarks or any other ones (see screenshot)
Step 3 — Show the Menu only on Specific Pages
The last step is to show the menu only on relevant pages, as it doesn’t make sense to have it for example on the “Home” page.
In addition to the Nav Menu Roles plugin that you can use to display specific menu items depending on whether a user is logged in or not, we will use the Conditional Menus (free).
Conditional Menus is a simple yet useful WordPress plugin which allows you to swap the menus as per specific conditions. In short, you can have different menus in different posts, pages, categories, archive pages, etc.
After installing and activating the plugin, go to Appearance → Menus → Manage Locations and add a new Conditional Menu for the Secondary Menu area, that will be shown only on the pages mentioned above:
- Get the Conditional Menus plugin (Themify)
- Adding a New Menu
- Managing your Navigation
- Managing the Search Suggestions Menu
- How to add the Current Username to the Navigation Menu?
- How to Create a Log Out Link in Your Menu