How To Use WordPress Custom Menu
WordPress provides a powerful custom menu’s feature that gives you a great deal of flexibility in how you can display links to almost every element of your site on your navigation menus.
If your WordPress theme supports custom menu, then you can use the WordPress features to create multiple menus, organize them into hierarchical sub-menus using a simple drag-and-drop feature, add links to external URLs and categories, even add links to them automatically when new pages are created.
Watch the video below and then complete the step-by-step tutorial to learn how to use WordPress custom menu …
How To Use WordPress Custom Menus: Step-By-Step Tutorial
To view, edit and manage your WordPress log into your WordPress administration area, and then go to Appearance > Menus …
You can also access the section from your theme management screen …
The Menus section allows you to manage your WordPress. This section is divided into two areas:
- Edit Menus
- Manage Locations
Edit Menus
You can create multiple menus and then assign these to different locations on your site.
To create a new one, go to the Edit Menus screen and enter a menu name into the Name field, then click on the Create Menu button …
Once you have created a new one, you can edit it by selecting it from the Select a menu to edit drop-down and clicking the Select button …
The next step is to add links (e.g. pages) to your menu.
In the screenshot below, you can see that there are no items listed in the Menu’s Structure section …
To add items such as links to pages to your menu, select items from the lists on the left-hand of your screen, then click the Add to Menu button …
The item will be added to your menu under the Structure section …
After adding a new item to your menu, remember to click on the Save button to save your settings …
If you don’t save your changes, a window will pop up asking you to confirm if you want to leave the page and lose your changes, or stay on the page …
Adding Menu Items
You can add various items and elements of your site to your menus …
Note: Although some elements will not display in your Edit Menus section unless you add specific plugins or functions to your site that support custom features, some elements are hidden by default.
For example, you can add links to posts, and even tag pages to your menus. If you don’t see these listed on your screen, do the following:
Scroll to the top of your Edit Menus screen and click on the Screen Options tab on the far right-hand corner of the screen …
Select Posts in the Show on screen section …
The item will now display on your screen …
You can choose to view only your most recently added items, view all items on a list, and even search for items on your page (just type a word into the search field and WordPress will automatically begin searching) …
You can add multiple items at once by selecting multiple checkboxes …
Or, add all of the items in a list at once by clicking the Select All link …
You can also add and display links to external locations on your menu, using the Links function …
Links show up in your menu area with items tagged as “Custom” …
Editing Menu Items
After adding items to your menu, you can modify and customize these further.
To expand or collapse a menu item, click on the little triangle on the right-hand corner of the title bar …
Let’s suppose that you want the item to open in a new page when visitors click on the menu link. Open up the item …
If you can’t see the open link in a new window/tab field displayed below the item’s Navigation Label, scroll to the top of your Edit Menus screen and click on the Screen Options tab on the far right-hand corner of the screen …
Make sure that the Link Target checkbox is selected in the advanced menu properties section …
Click the open link in a new window/tab checkbox …
Your link will now open in a new window (remember to save for the change to take effect).
The screenshot below shows an item with all of the advanced options listed in the Screen Options tab enabled …
The advanced menu properties are used by web developers and by WordPress theme designers to further enhance, style and customize menu options. Below is a brief description of these properties:
Title Attribute: This field specifies the Alternative (‘Alt’) text for the menu item. This text is displayed when a visitor hovers over a menu item with their mouse.
For example, if you add the following line into the Title Attribute field and the save your menu …
This is what your visitors will see when they hover with their mouse over the menu link …
CSS Classes: This allows you to style your links using CSS (Cascading Style Sheets). After adding a CSS class to a menu link, you can then target the classes you have assigned from within your stylesheet.
Link relationship (XFN): XFN (XHTML Friends Network) is a simple way to represent the relationships you share with the owners or authors of other websites using links. This allows certain programs such as search engines and specialized services to understand and display the relationships you share with other people, such as friends, professional contacts, etc. For more information, go here: XFN
Description: This field can be used to add a short description to a menu label …
You can also give your menu label a custom name that is different from the name of your page …
Rearranging Menu Layouts
The custom menus feature lets you easily rearrange menu items.
To rearrange your menu items, first add some menu items to your menu …
Once you have added your menu items, notice that “move” options begin to display in your item’s details section, allowing you to move the position of your item on the menu bar …
You can rearrange the position of your menu items by clicking on the “move” options, or simply click on an item’s bar, then drag-and-drop these into its desired position …
Here is a screenshot of a custom menu, displaying menu items in a certain order …
After applying simple drag-and-drop to rearrange menu items …
The menu links have now been reordered on the example site …
You can also create nested menus by drag-and-dropping menu items and shifting their position away from the left margin. Items can be nested multiple levels deep …
Below is a screenshot of the above menu configuration displayed in an example menu …
Your menus will display differently, depending on the WordPress theme you have chosen for your site …
Menu Settings
The Menu Settings section lets you automatically add pages to menus depending on the options you specify:
- Auto Add Pages: Check this box to automatically add new top-level pages to your menu
- Theme locations: Check the box(es) in this section to specify the locations in your theme where you want your new menu links to be added …
Manage Locations
Before your custom menu settings can be displayed on your site, your menu needs to be assigned to a location on your theme.
Some WordPress themes only support one menu …
Other WordPress themes support multiple menus …
If you have not created a menu yet, then click on the Use new menu link to create one …
To assign an existing menu to a location on your theme, select it from the Assigned Menu dropdown menu …
Click on the Save Changes button to save your selection …
If your theme supports multiple menus, repeat the above process to assign all menus to a location on your theme …
Your menu locations will now be updated …
Your custom menu will now be displayed on the theme location you have assigned …
Remove Menu Items
To remove an item from your menu, select and expand the item and click on the Remove link …
Delete Menus
To delete a menu, load the menu in the Edit Menus screen, then scroll down to the bottom of the page and click on Delete Menu …
You will be asked to confirm the deletion. Click OK to proceed, or Cancel to escape …
The selected menu will be deleted …
Using Custom Menus With Widgets
Custom menus can be added to your sidebar and other menu locations using widgets.
WordPress has a Custom Menu widget that you can add to your widgetized menus …
You can add multiple Custom Menu widgets to your menus.
To use this feature, go to the Widgets section of your WordPress site, and drag a Custom Menu widget to the menu where you want your menu links to display …
Enter a custom menu title in the Title: field, select the menu to display on your sidebar from the Select Menu dropdown, and click the Save button to save your settings …
Your custom menu will now display on your site where you have inserted the widget …
Additional Information
There are a number of plugins you can use to enhance your WordPress menus. We have created a separate tutorial about WordPress menu plugins here: How To Enhance Your Site’s Navigation With WordPress Menu Plugins
Congratulations! Now you know how to split long posts into multiple pages.
WordPress is huge and can sometimes be overwhelming about where to start. As you move on to the next Page, you will have a clearer picture of where to start and progress to building a professional WordPress Site
Related WordPress Tutorials