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.
Cannot theme links in a menu when menu_name contains a hyphen.
Related issue: #1001146: Cannot theme links in a menu when menu_name contains a hyphen.
To fix this, a minor change of menu_block.module at line #90 is required:
$variables['classes_array'][] = 'menu-name-' . strtr($variables['config']['menu_name'], '-', '_');
(sorry, no patch utility at this moment)
Comments
Comment #1
Simon Georges CreditAttribution: Simon Georges commentedThe related issue has been fixed, so there's no need for this fix any more. Thanks anyway!