How to create different menus on different pages with WordPress conditional menus

Who I am
Pavel Yosifovich
@pavelyosifovich
Author and references

Maybe because we didn't know or because new elements were added. This is to give our site more functionality. In the following tutorial we will show you how to create different menus on different pages with WordPress conditional menus.

But what does this mean, sometimes we want show a menu or some elements of it, conditionally. And these would be displayed depending on where the user is on the site.

But this can also depend on the privileges you enjoy in WordPress, whether you are a customer who has an account or not, who is a collaborator or administrator, etc.



But this will be a very simple operation to perform, as well as creating an entry in WordPress in a very simple and fast way. So below we will show you how to use WordPress functions and specifically for create menus with WordPress conditional menus.

How to create different menus on different pages with WordPress conditional menus

Well, to be clearer, with the function Conditional Menus we can create a different menu on each of the pages of our site. And to do this we will use the Conditional Menus plugin.

So, to show you how it is used, we will go to our site at WordPress, then in the left side panel we will select the Plugin tab.

To do this, we create a clip on this option and then on Add new, then it will show us the window that bears this name and in the search engine we place the name of Conditional menus and press Enter. In this way, it will show us the plugins as the first option and now we click on install and then click Activate.


Now let's go to our website and select the Menu option, performing this action will bring you to the window Conditional menus. In addition to the general options you will find, it will also show you a short review of how plugins are used. Now let's go to the side panel and select the Appearance tab and then the Menu option.


In this window we will create the main menu and this will be the name of the menu, in the menu structure we will place two buttons which will be page 1 and page 2. And in the menu settings, we are going to select the Main option. And then we will select the Save changes option, now if I go to the page you will see these options on the main page.

So what we want is that when you select Page 1 it will show us different menu options than the ones offered by the main page or Page 2. To do this, we go to Menu and do click su Create a new menu. And we enter the name Menu 1 and now we will add the buttons we want to appear in this menu.

Creation of menus that will appear in conditional menus

So we are creating the menus that will appear in the structure of the menu and when we're done we need to create a clip in Save Changes. Now let's go create the second menu or Menu 2, and repeat the steps to create the buttons that this Menu contains. We must remind you that in the menu Settings you should not select any of the options found there.


Now, when we've created the menus, let's go to the top left and select the Manage Locations option. And in the Main option we select the main menu and then select the option Conditional menu.

Here we choose Menu 1 and then condition when making the clip in condition, a box will appear where you need to choose which pages or categories you want Menu 1 to appear in and then click Save.


Do the same operation with menu 2 and then make a clip on the Save changes option and this is how we finish this article. With whom you have been able to learn to create different menus on different pages with WordPress conditional menus.


add a comment of How to create different menus on different pages with WordPress conditional menus
Comment sent successfully! We will review it in the next few hours.