Replace ul class in Drupal 7 Menu
Submitted by Benjamin Nicoll on Sat, 04/06/2013 - 13:28When theming Drupal Menus you will often want to remove the default styles associated with certain menu elements.
Add Code to template.php
function YOURTHEME_menu_tree__YOURMENU(&$variables) {
return '<ul class="ADD NEW CLASSES">' . $variables['tree'] . '</ul>';
}My Theme:
In my case I'm using Twitter BootStrap and replacing the old 'menu nav' ul classes on the Navigation menu so my code looks like this:











