Adding a link to a menu

Last updated on
30 September 2016

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

Before you begin

Ensure that the Menus module is activated.

If the link you plan to add leads to a Drupal node, first be sure your menu is enabled in the node's content type.

It is possible to add menu links that are not enabled in the content type using the first method below. If you do, you will find that certain changes can cause your link to disappear from the assigned menu.

Locate a menu to edit

  1. Navigate to the Menus page (Structure > Menus or http://example.com/admin/structure/menu).
  2. Locate a menu to edit and click add link.
  3. In the Menu link title field, enter the title as it will be displayed in the menu.
  4. In the Path field, enter a path for the link. This can be an internal Drupal path such as node/add (see "Before you begin" above) or an external URL such as http://example.com. Enter <front> to link to the front page.
  5. In the Description field, enter the text that will be displayed when a user hovers over the link.
  6. Enable any of the following options:
  • Enabled: If the link is not enabled, it will not be displayed in the menu.
  • Expanded: If this option is enabled and the menu link has children, the first level children of the menu link will always be expanded. (NOTE: This rule doesn't cascade down for subsequent levels of children links. You must enable this option at each level where you want the next level to be expanded.)
  • In the Parent link list, select the parent of the link.
  • (Optional) In the Weight list, select the relative weight of the link. Links with the "lightest" weight will display higher in a menu. Links with the same weight will display in alphabetical order.
  • Click Save.

Configuring Menu settings for a content type

This configuration allows you to use the node edit page to configure a menu link

  1. Navigate to the content type for the node (Structure > Content types or http://example.com/admin/structure/types).
  2. Locate the content type and click edit.
  3. Choose Menu settings.
  4. Click the checkbox of the menu you need.
  5. (Optional) Set the Default parent item to choose a default menu for this content type.
  1. Navigate to the node editing screen (Node > Edit or http://example.com/node/*/edit) for the node you want to add to the menu (this is in the Content menu for Drupal 7). This can also be done when you first create the node.
  2. Click the checkbox marked Provide a menu link. The menu options will appear.
  3. In the Menu link title field, enter the title as it will be displayed in the menu.
  4. In the Description field, enter the text that will be displayed when a user hovers over the link.
  5. In the Parent item list, choose the menu that should display this item. Note: the menu you want will only appear in this list if you have assigned it to the content type of the node you are editing. See "Before you begin" above.
  6. (Optional) In the Weight list, select the relative weight of the link.
  7. Click Save.

edit content

Help improve this page

Page status: No known problems

You can: