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
Supporting organizations:
D9 / D10 support
proudly helps to maintain this module for the Drupal community
Project information
- Project categories: Administration tools
91,543 sites report using this module
- Created by yannickoo on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
8.x-1.7
released 23 March 2026
Works with Drupal: ^8 || ^9 || ^10 || ^11
Install:
Development version: 8.x-1.x-dev updated 19 Mar 2026 at 17:03 UTC



