How To Make A Sub-Menu In WordPress

Are you looking for a way to organize your website content better and make it easier for your visitors to find what they are looking for? If so, then you must learn how to make a sub-menu in WordPress.

 In this post, we will not only show you how to make a sub-menu in WordPress but also provide some tips on how to customize your sub-menu to match your website’s design. Let’s get started!

What Is A Sub-Menu And Why Would You Want To Create One In WordPress?

A sub-menu is a list of related items that appears under the main menu item when it is clicked on. Sub-menus are often used to organize content on websites into sections and subsections. 

For example, a website about different types of animals might have a main menu item called “Animals” with sub-menu items for “Mammals,” “Birds,” “Reptiles,” and “Fish.” 

There are several reasons why you might want to create a sub-menu in WordPress. First, it can help to make your website more organized and user-friendly

Second, it can make it easier for visitors to find the information they are looking for. third, it can give your website a more professional look. 

To create a sub-menu in WordPress, go to the “Appearance” tab and then click on “Menus.” From there, you will be able to add new menu items and arrange them into different levels. 

To create a sub-menu, simply drag an existing menu item underneath another menu item and indented it to the right. Finally, don’t forget to save your changes!

How To Add A Sub-Menu To Your Existing Menu?

Creating a sub-menu in WordPress is a relatively simple process that can be completed in just a few steps. 

First, you will need to create a new menu item and assign it to the desired location on your existing menu. To do this, click on the “Menus” link in the Appearance section of your WordPress dashboard. Then, click on the “Add New” button. 

Next, enter the name of your new menu item and click on the “Add Menu Item” button. In the “Parent Item” drop-down menu, select the menu item that you want to be the parent of your new sub-menu item. 

Now, you will need to add the items that you want to appear in your sub-menu. To do this, click on the “Add Sub-Item” button next to each menu item that you want to appear in your sub-menu. 

Finally, click on the “Save Menu” button to save your changes. Your sub-menu should now be visible on your website.

how to make sub menu in wordpress

Adding A Sub-Menu In WordPress Is A Great Way To Organize Your Content 

If you have a WordPress website, you might want to consider how to make a sub-menu in WordPress. 

Sub-menus can be a great way to organize your content and make it easier for your readers to find what they’re looking for. Here’s how you can add a sub-menu in WordPress:

1. Log into your WordPress account and go to the Dashboard.

2. In the left-hand menu, hover over Appearance and click on Menus.

3. On the Menus page, select the menu you want to edit. If you don’t have a menu yet, you can create one by clicking on the “Create a new menu” button.

4. To add a sub-menu, first add a top-level Menu Item. For example, if you have a blog with categories, you might want to add a Menu Item for each category.

5. Once you’ve added a top-level Menu Item, hover over it and click on the “Add items” button that appears.

6. On the “Add items” page, select the pages or posts you want to add to the sub-menu and click on the “Add to Menu” button.

7. Repeat steps 5 and 6

There Are Several Ways To Add A Sub-Menu In WordPress

If you’re using WordPress to build a website, you may want to learn how to make a sub-menu in WordPress to help organize your content. There are several ways to do this, and the method you choose will depend on the theme you’re using. 

One way to add a sub-menu is to create a new page and then add it as a child page of the main menu item. To do this, go to the Pages section of the WordPress Dashboard and click on Add New. 

Enter the title of the page and then select the parent page from the drop-down menu. This will cause the new page to appear as a sub-menu item. 

Another way to add a sub-menu is to use a plugin. There are many plugins available that will allow you to add a sub-menu, and they vary in terms of features and ease of use. One popular option is Menu Items by Attributes, which allows you to specify which pages should appear as sub-menu items. 

Finally, some themes come with built-in support for adding sub-menus. If your theme has this functionality, it will typically be located in the Customizer or Appearance section of the WordPress Dashboard.

The Most Common Way To Add A Sub-Menu Is By Using The Menus Feature In WordPress

If you’re using WordPress to build your website, you may want to add a sub-menu to help organize your content. The easiest way to do this is by using the Menus feature in WordPress. 

To get started, go to the Appearance tab and select Menus. From there, you can add new menus and sub-menus as needed. Simply drag and drop the items into the desired order and save your changes. 

You can then assign your new menu to a specific location on your site. With a few clicks, you can easily add sub-menus to your WordPress site and keep your content organized.

Another Way To Add A Sub-Menu Is By Using Custom Menus Or Widgets

One way to add a sub-menu to your WordPress site is by using custom menus or widgets. To do this, first log into your WordPress dashboard and go to the Appearance > Menus page. 

From here, you can add new menu items and arrange them into sub-menus. Once you’ve saved your changes, the new sub-menu will appear on your site. You can also add sub-menus by using widgets. 

Simply go to the Appearance > Widgets page and drag and drop the desired widgets into the appropriate sidebar or footer area. Again, be sure to save your changes so that the new sub-menu appears on your site. 

By following these steps, you can easily add a sub-menu to your WordPress site.

How To Edit Your Theme’s Code?

If you want to add a sub-menu to your WordPress site, you’ll need to edit your theme’s code. Fortunately, this is relatively easy to do. First, open the header.php file in your theme’s folder. 

Find the section of code that displays the main menu and add the following code just below it:

<?Php wp_list_pages(‘depth=1&title_li=’); ?>

This will create a list of all the top-level pages on your site. If you only want to list certain pages, you can use the ‘include’ parameter like this:

<?php wp_list_pages(‘depth=1&title_li=&include=2,5,9’); ?>

Finally, save the header.php file and upload it to your server. Your sub-menu should now be visible on your site. Finally, you can also add a sub-menu by editing your theme’s code.

Read More…

Table of Contents

Do You Have a Digital Problem or a Project In Mind?

Kick Back and Let Us Solve It

Tell Us Know About Your Marketing Needs

Tell Us About Your Project and We'll Send You a Free Marketing Proposal With No Strings Attached!

Tell Us About Your Digital Problem or Any Project You Have In Mind

Simply fill out the form so we can send you a customized proposal for your business’s specific needs.