Table of Contents
Have you ever given much thought to how you navigate through a website? How do you get to the right page so easily?
The answer is website menus. These neatly arranged menus are what make your navigation easy on the website.
If you are new to WordPress, you probably would have no clear idea about creating menus on websites. Learning to create and manage menus are important if you have a WordPress website.
This article has all of it covered in the simplest way possible. It will help you learn all of it quickly. Without any further ado, let's get into the business.
Creating a New Menu in WordPress
Go to Appearance > Menu from your WordPress dashboard.
By doing so you will land on the edit menu window, where you can start creating a new menu.
You can type in a name for the new menu and click the Create menu button to create the menu.
I am going to create a new menu called "Menu1".
In the Menu settings, the display location is selected as Primary menu. It should be noted that the display location varies with your theme. So for a different theme, the display location may be different. You need to make sure that by checking your website.
Now you may click the Save Menu button to save the newly created menu.
Adding Pages, Categories, and Subcategories to the Menu
Once you are done with creating a new menu, you can add elements like pages, categories, posts, custom links, and WooCommerce endpoints to the menu.
This section will explain to you how you can add pages, categories, and subcategories to the menu.
On the left side of the edit menu page, you can select the pages you wish to add to the menu and hit the Add to menu button. Now the selected pages will have been added to the menu.
Here is how the primary menu looks at the front-end of the website.
Here is how the newly created looks on the website.
Now let's get into adding categories to the menus.
You can choose categories from the drop-down on the left and click Add to menu button. I chose category 1 to be added to the menu from the category list.
Now I am going to reorder the category into its respective page.
and click Save Menu to save the changes.
Here is how it changes the website.
Now the My Account page has a category to it.
Let's move onto add a subcategory to the above category. Just like we added the category, you can also choose the subcategory and subsequently click the Add to Menu button.
Position the subcategory below category 1 as shown in the following screenshot.
Now click the Save menu button.
Here is the look of the website after adding a subcategory to the menu1.
How to Create a Sidebar Menu?
You can add menus to your sidebar by using widgets.
To do this you must navigate to Appearance > Widgets. Following is a screenshot of the resulting window.
To add a menu to the sidebar, you first have to drag and drop the Navigation menu widget to where you want the menu to appear.
In this example, I have placed it below Search.
You may give it a title (in the example Go to the link) and select the menu (menu 2) that you want to appear on the sidebar from the dropdown and click the Save button.
Here is how the website looks with the new sidebar menu.
Creating menus is one of the simplest and basic knowledge every WordPress learner should possess. Having mastered it, you will have great control over your website. I hope the above guide was helpful for you in learning about the process.