Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
update your template.php then add preferred style to css
/* add item-odd item-even class to list */
function phptemplate_menu_item($link, $has_children, $menu = '', $in_active_trail = FALSE, $extra_class = NULL) {
static $count = 0;
$zebra = ($count % 2) ? 'even' : 'odd';
$count++;
$class = ($menu ? 'expanded' : ($has_children ? 'collapsed' : 'leaf'));
if (!empty($extra_class)) {
$class .= ' '. $extra_class;
}
if ($in_active_trail) {
$class .= ' active-trail';
}
$class .= ' item-'. $zebra;
return '<li class="'. $class .'">'. $link . $menu ."</li>\n";
}
Comments
This doesn't work for the
This doesn't work for the Garland primary and secondarly links,
print theme('links', $secondary_links, array('class' => 'links secondary-links'))
You'll have to use a preprocess function like on http://drupal.org/node/753078