Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Try the Menu attributes
module
. With it, you can specify a class for any menu item.
Or you need to override theme_menu_link() in your theme.
Now there is a function on the site
function mythemes_menu_link(array $variables) {
$element = $variables['element'];
$sub_menu = '';
if (isset($element['#original_link']['mlid'])) {
$element['#attributes']['class'][] = 'mlid'.$element['#original_link']['mlid'];
}
if ($element['#below']) {
$sub_menu = drupal_render($element['#below']);
}
$output = l($element['#title'], $element['#href'], $element['#localized_options']);
return '<li' . drupal_attributes($element['#attributes']) . '>' . $output . $sub_menu . "</li>\n";
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question