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.
Is it possible to make a function that would add a unique id to the <ul>
at each level? This way, it would become easier to do targeted CSS theming to one menu level without subsequent menu levels inheriting the same styling.
Any help would be greatly appreciated. Thanks.
Comments
Comment #1
andregriffin CreditAttribution: andregriffin commentedChanging title. Also, adding a class would be more semantically appropriate.
For example, I'd like to achieve: