WordPress Menu User Guide
Defining a Menu
You must define a menu before you can add items to it. To define a menu, follow the steps below:
- Login to the WordPress Dashboard.
- Navigate to Appearance > Menus and click on Menus to open the Menus window.
- If you have created some pages for your site, but do not have any menus, your window should resemble the right hand screen capture. Otherwise, click the create a new menu link near the top (green arrow).
- Enter a name for your new menu in the Menu Name text input field. For the sake of this exercise, we shall call it Main.
- Click the button.
Adding Items to a Menu
The right hand screen capture depicts the result of creating our menu named Main. Notice we have revealed the contents of the Screen Options pane by clicking the Screen Options tab in the top right corner of the Menus window. The top row of checked boxes corresponds to the default configuration of panes depicted to the left of the Menu Structure interface you are about to edit. Certain screen option items, such as Tags, are hidden by default.
- Locate the Pages window pane.
- Within the Pages window pane, select the View All link to bring up a list of all the currently published Pages on your site.
- Select the Pages that you want to add to Main by clicking the checkbox next to each Page title. For the purpose of this exercise, we shall click the Select All link.
- Click the taxonomies; however, this is just an overview to get you started. button located at the bottom of the Pages pane to add your selection(s) to Main. You may repeat the process for other pane types assuming you have content assigned to those
- Once you are finished adding menu items click the button.
The checkboxes in the Menu Settings pane just below the Menu Structure pane are discussed at the end of this article. Your custom menu should now appear similar to the right hand screen capture.
Customizing Menu Items
Reference the screen capture to the right for the location of the following menu item attributes. You will need to have all the Advanced Menu Properties selected (green circle) as depicted in the Screen Options pane at the top of the screen capture in oder to view all attributes in the following list. The Title Attribute, Link Target, CSS Classes, Link Relationsip (XFN) and Description attributes are all hidded by default on the Screen Option pane.
- Click on the arrow in the upper right-hand corner of the menu item to expand it (indicated by green arrow).
- Enter the values you want to assign to the attributes described below.
- Click the button to save your changes.
- Navigation Label
This field specifies the title of the item on your custom menu. This is what your visitors will see when they visit your site/blog.
- Title Attribute
This field specifies the Alternative (“Alt”) text for the menu item. This text will be displayed when a user’s mouse hovers over a menu item.
- Link Target (the label has been removed)
Select “Open link in a new tab” or leave the box unchecked to open the link in the same tab or window.
- CSS Classes
Optional CSS Classes for this menu item.
- Link Relationship (XFN)
Allows for the generation of XFN attributes automatically so you can show how you are related to the authors/owners of site to which you are linking. See Link Relationship for details.
Description for this link. The description will be displayed in the menu if the current theme supports it.
A link to the original source of the menu item (e.g. a link to view the post or page).
Deleting Menu Items
- Locate the menu item that you want to remove in the menu editor window
- Click on the arrow icon in the top right-hand corner of the menu item/box to expand it.
- Click the Remove link in the lower left corner. The menu item/box will be immediately removed.
- Click the button to save your changes.
Creating Multi-level Menus
When planning the structure of your menu, it helps to think of each menu item as a heading in a formal report document. In a formal report, main section headings (Level 1 headings) are the nearest to the left of the page; sub-section headings (Level 2 headings) are indented slightly further to the right; any other subordinate headings (Level 3, 4, etc) within the same section are indented even further to the right.
The WordPress menu editor allows you to create multi-level menus using a simple ‘drag and drop’ interface. Drag menu items up or down to change their order of appearance in the menu. Drag menu items left or right in order to create sub-levels within your menu.
To make one menu item a subordinate of another, you need to position the child underneath its parent and then drag it slightly to the right.
- Position the mouse over the child menu item.
- While holding the left mouse button, drag it to the right.
- Release the mouse button.
- Repeat these steps for each sub-menu item.
- Click the Save Menu button in the Menu Editor to save your changes.
Publishing Your Menu
To make your new menu visible on your site, add it to one of the theme specific (varies by theme) Display locations:
- Scroll to the bottom of the Edit Menus window.
- In the section titled Menu Settings, click the check box for the location you want your menu to appear.
- Click once you’ve made your selection.
The setting, Automatically add new top-level pages to this menu is explained in the WordPress Menus section of the article Creating Pages.
Congratulations! Your new custom menu has now been added to your site.