Adding a menu to our theme
In this recipe, we will look at using the Menu module to add a menu to a theme which will allow the user to navigate through the site. While we can add as many menus as we need, Drupal and most Drupal themes, by default, support two generic menus named Primary links and Secondary links.
Getting ready
The Menu module which comes with Drupal will need to be enabled to add our menu and menu items.
How to do it...
Let us first add a custom item to the menu:
Navigate to
admin/build/menus
(Home | Administer | Site building | Menus) and click on the Primary Links menu.Click on the Add item tab at the top of the page.
Add a menu item, for example, a link to an external site with path http://drupal.org and Menu link title set to Drupal as in the next screenshot.
The Description field can optionally be filled and appears when the user hovers over the link as its
title
attribute.The Weight field dictates the order of the item relative to others in the same menu.
Ensure that the Parent...