Creating and Managing Menus in WordPress
Menus are essential for navigating your website, allowing visitors to easily find pages, posts, and other content.
Overview
WordPress makes it simple to create and manage menus using its built-in menu editor. This guide will show you how to create menus, add items, and manage the structure and appearance of your menus.
Accessing the Menu Editor
To manage your site’s menus, follow these steps:
From the Dashboard:
Go to Appearance > Menus in the WordPress Admin Dashboard.
In the Customizer:
You can also access menus by going to Appearance > Customize and then selecting Menus from the Customizer panel.
Creating a New Menu
If your theme does not already have a menu, or if you want to create an additional menu (e.g., a footer menu), you can create one from scratch.
Steps to Create a New Menu
Go to Appearance > Menus.
Click “Create a New Menu” next to the "Select a menu to edit" dropdown.
Enter a name for your menu (e.g., Main Menu, Footer Menu) in the "Menu Name" field.
Click “Create Menu.”
Adding Items to the Menu
Once your menu is created, you can start adding pages, posts, categories, or custom links.
How to Add Pages to the Menu
From the left-hand side panel, you’ll see a section called Pages.
Check the box next to the page(s) you want to add to the menu (e.g., Home, About, Contact).
Click Add to Menu.
The selected pages will appear on the right under Menu Structure.
Adding Custom Links to the Menu
If you want to add links to external sites or specific parts of your site:
Click on Custom Links in the left-hand panel.
Enter the URL in the “URL” field.
Enter the Link Text (this is the text that will appear in the menu).
Click “Add to Menu”.
Adding Categories or Posts to the Menu
To add blog categories or individual posts to the menu:
Click on Categories or Posts in the left-hand panel.
Check the box next to the categories or posts you want to add.
Click Add to Menu.
Organizing Menu Items
You can organize the structure of your menu by dragging and dropping the items into place.
Rearranging Menu Items
In the Menu Structure section, simply drag each item up or down to reorder it.
Click Save Menu when you're done.
Creating Sub-Menus (Dropdown Menus)
To create a sub-menu (dropdown) under a main menu item:
Drag the item you want to appear in the dropdown below the main menu item.
Indent it slightly to the right by dragging it to the right.
This will create a hierarchy, making the item a sub-menu.
Click Save Menu to confirm the structure.
Assigning a Menu Location
Most themes have specific locations where menus can be displayed (e.g., header, footer, sidebar).
How to Assign Menu Locations
Scroll down to the “Menu Settings” section below the Menu Structure.
You will see location options such as Primary Menu, Footer Menu, or other theme-specific locations.
Check the box next to the location where you want the menu to appear.
Click Save Menu.
Assigning Menus via the Customizer
Go to Appearance > Customize.
Select Menus.
Choose a menu and click on Menu Locations.
Assign the menu to the desired location (e.g., Primary, Footer).
Click Publish to save the changes.
Editing and Deleting Menu Items
Editing Menu Items
To change the label (text) of a menu item:
In the Menu Structure, click the down arrow next to the item you want to edit.
Edit the Navigation Label (this is what displays in the menu).
You can also set a Title Attribute, which appears when a user hovers over the item.
Click Save Menu to apply changes.
Deleting Menu Items
Click the down arrow next to the menu item you want to delete.
Click Remove at the bottom of the item settings.
Don’t forget to Save Menu to apply changes.
Best Practices for Menu Management
Keep it Simple: Avoid cluttering your menu with too many items. Aim for a clean and intuitive structure.
Use Descriptive Labels: Ensure that each menu item clearly indicates the page or content it leads to.
Test Your Menus: After making changes, visit your website to ensure all menu items are functioning properly.
Organize Dropdowns: If you have many pages, consider using sub-menus to organize them neatly.
Conclusion
WordPress makes it easy to create and manage menus using the default tools. By following the steps in this guide, you can create navigation menus that improve the usability and organization of your website. Take the time to plan your menu structure and ensure it provides clear, intuitive navigation for your visitors.
Last updated