Add depth-specific class to each menu level

Created on 26 November 2011, over 12 years ago
Updated 2 May 2024, about 2 months ago

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.

πŸ’¬ Support request
Status

Closed: outdated

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States andregriffin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024