O'Reilly logo

Drupal 6 Theming Cookbook by Karthik Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. Navigate to admin/build/menus (Home | Administer | Site building | Menus) and click on the Primary Links menu.
  2. Click on the Add item tab at the top of the page.
  3. Add a menu item, for example, a link to an external site with path http://drupal.org and Menu link title set to

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required