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.
I know i can use:
function MYTHEMENAME_menu_tree(&$variables) {
return '<ul class="MYCLASS">' . $variables['tree'] . '</ul>';
}
to alter every menu UL, but is there any way to specify one menu block menu only? or anything i can do to narrow it down at all? (i.e. it's the only block in the header)
thanks!
Comments
Comment #1
rdentry CreditAttribution: rdentry commentedWere you ever able to figure this out?
Comment #2
gaborpeter CreditAttribution: gaborpeter commentedCheck out this patch if it helps
Comment #3
pelicani CreditAttribution: pelicani commentedFound a great solution on this here ... https://www.drupal.org/node/1178784#comment-7996803
Provides 2 theme hooks for targeting the main and inner uls.