How to add dropdown menus to Drupal. Easiest way I’ve found is to use the Nice Menus module (D6 & D7).
Make sure to replace instances in
theme(..., $primary_links...) with
If using the Zen theme, look for
theme(array('links__system_main_menu', 'links'), $primary_links)
Additionally, if you need to wrap links in <span> tags:
- See answer #6 to question [sic] “Adding <SPAN> tag arond primary menu links” (see also #16, #17, and probably #21)
- Also refer to How to theme Nice menus
Basically, just override theme function
THEME_menu_item_link($link), as it's used in Zen theme core.
For Drupal 7 (D7) use
print render(menu_tree('main-menu'));. This will give you a nested menu structure, which you can theme to your heart’s content to mimic sliders, dropdowns, etc.