I have added this code:

  $cls = strip_tags($output);
  $cls = str_replace(' ','-',strtolower($cls));
  $element['#attributes']['class'][] = $cls;

to the menu-link.func.php file so that my menu items have a class relating to the link, very useful, could we add this in? Happy to make patch?

Comments

markhalliwell’s picture

Status: Active » Closed (won't fix)