how to add submenus in wordpress

Mastering WordPress: Adding Submenus in a Snap

By Robert Wilson
AD

Do you want to create a hierarchical menu on your WordPress site to improve navigation and user experience? Adding submenus to your WordPress menu is an excellent way to organize your content, especially if your website has numerous pages or categories. This step-by-step guide will walk you through the process of creating submenus in WordPress.

Before we delve into the process, ensure you have a menu set up in your WordPress dashboard. If you haven't, navigate to 'Appearance' > 'Menus' and create a new menu. Once your primary menu is ready, let's explore how to add submenus.

Creating Parent and Child Menu Items

In WordPress, submenus are created by attracting parent/child relationships between menu items. The top-level menu items are the parents, while the submenus are the children.

AD
Ultimate Guide To WordPress Menus Complete (With Pictures)
Ultimate Guide To WordPress Menus Complete (With Pictures)
How to Edit The Menu in WordPress: Your Simple Step-by-Step Guide
How to Edit The Menu in WordPress: Your Simple Step-by-Step Guide
How To Add A Menu In WordPress
How To Add A Menu In WordPress

First, let's create a parent menu item. In your 'Appearance' > 'Menus' dashboard, under 'Menu Settings,' ensure 'Auto-add pages' is unchecked. Then, click 'Screen Options' at the top right and turn on 'Links' and 'Categories.' Now, start adding your menu items under the 'Menu Structure' section.

Adding a Parent Menu Item

To create a parent menu item, click on the 'Add Menu Items' tab. Here, you'll find various content types to add, such as Pages, Posts, Categories, etc. Select the appropriate content type, choose the desired item, and click 'Add to Menu.'

How to Add a Menu to Your WordPress Website
How to Add a Menu to Your WordPress Website
How to Add a Menu to Your WordPress Website
How to Add a Menu to Your WordPress Website
How to Create a WordPress Dropdown Menu: Your Ultimate Guide!
How to Create a WordPress Dropdown Menu: Your Ultimate Guide!

You'll see the added menu item under 'Menu Structure.' Drag and drop it to arrange your menu items hierarchically—this order will determine the visibility of submenus on your website.

Adding a Child Menu Item (Submenu)

Now, let's create a submenu under the parent item you just added. To do this, click on the 'Add Menu Items' tab again. This time, add the desired content type and item to create a new menu below the parent item.

AD

To make this item a submenu, simply drag it slightly to the right (indentation will become visible) and drop it directly underneath the parent menu item. The item will now appear as a submenu on your website.

Open A WordPress Menu Link In A New Window
Open A WordPress Menu Link In A New Window
How to Add a Menu to Your WordPress Website
How to Add a Menu to Your WordPress Website
How to Add a Menu to Your WordPress Website
How to Add a Menu to Your WordPress Website
How to Add a Menu to Your WordPress Website
How to Add a Menu to Your WordPress Website
How to Add a Menu to Your WordPress Website
How to Add a Menu to Your WordPress Website
How To Create + Edit Your WordPress Menu On Your Blog With This Easy Blogging For Beginners Tutorial
How To Create + Edit Your WordPress Menu On Your Blog With This Easy Blogging For Beginners Tutorial

Arranging and Customizing Submenus

WordPress allows you to further structure and customize your submenus for better navigation.

_reorder menu items_ by clicking and dragging the menu items in the 'Menu Structure.' A dashed line indicates where the item will be placed.

AD

Setting Submenu Location

WordPress enables you to display your submenus either horizontally or vertically. To change the submenu location, click on 'Screen Options' and turn on 'Display location.' Here, you can choose to display submenus as a dropdown or by expanding horizontally.

How to Open a WordPress Menu Link in a New Tab
How to Open a WordPress Menu Link in a New Tab
How to Add a WordPress Navigation Menu - WPkind
How to Add a WordPress Navigation Menu - WPkind
How to Add a Search Bar to Your WordPress Menu
How to Add a Search Bar to Your WordPress Menu

To customize the submenu further, click on the 'Screen Options' again and turn on 'CSS Classes.' This allows you to add custom CSS classes to your menu items for additional styling.

Creating Multi-Level Submenus

If you want to create submenus within submenus (multi-level submenus), the process remains the same. Simply add another menu item and indent it under the existing child item using drag and drop.

AD

However, keep in mind that too many levels of submenus can confuse users, so ensure your navigation is well-organized and intuitive.

The final step is to save your menu and assign it to a theme location, typically 'Primary Menu' or 'Header Menu,' depending on your theme's settings. Now, your submenus should be visible on your WordPress website, improving navigation and user experience.

As your website grows, keeping your menu structure organized and intuitive becomes increasingly important. Adding submenus in WordPress is an excellent way to achieve this. Experiment with your menu structure and customization options to create the perfect navigation system for your website.

AD