Inserire questo cosice nel file template.php del proprio tema.
<ul class="navigation clearfix"> <li><a href="/" class="active">Home</a></li> <li class="dropdown"><a href="/about" title="">About</a> <ul> <li class="dropdown">Page 1 <ul> <li>Sub Page 1.1</li> <li>Sub Page 1.2</li> <li>Sub Page 1.3</li> <li>Sub Page 1.4</li> </ul> </li> </ul> </li> </ul> /** * Implements theme_menu_tree(). */ function arcadia_menu_tree__main_menu($variables) { return '<ul class="navigation clearfix">' . $variables['tree'] . '</ul>'; }
function arcadia_menu_link(array $variables) { $element = $variables['element']; $sub_menu = ''; $element['#attributes']['class'][] = 'menu-' . $element['#original_link']['mlid']; if ($element['#below']) { unset($element['#below']['#theme_wrappers']); $sub_menu = '<ul>' . drupal_render($element['#below']) . '</ul>'; // $sub_menu = drupal_render($element['#below']); } $output = l($element['#title'], $element['#href'], $element['#localized_options']); if ($sub_menu!='') { return '<li class="dropdown">' . $output . $sub_menu . "</li>\n"; } else { return '<li>' . $output . $sub_menu . "</li>\n"; } }