This module allows you to add custom HTML attributes to menu links or their parent list items. You can configure which attributes are available and for whom to grant permission to use them.
This module allows you to add attributes to your menu links or their wrapping <li> elements.
Installation โ๏ธ
- Enable Menu Link Attributes module
- Grant Use menu link attributes permission to users which should be able to set attributes on menu items
- Set available attributes on /admin/config/menu_link_attributes/config
Screencasts ๐บ
Container attributes
In order to provide attributes for containers (wrapping <li> elements) you simply need to create a new attribute starting with container_, those will be applied on the container automatically.
Optional dependency
- YAML Editor - Loads an Ace editor which makes YAML editing more fun
Ask your assistant about Menu Link Attributes
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- menu_link_content Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.