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.
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
Project information
- Module categories: Content Display, Developer Tools
- 63,724 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.3
released 14 December 2022
Works with Drupal: ^8 || ^9 || ^10
✓ Recommended by the project’s maintainer.
Drupal 10 support
Install:
Development version: 8.x-1.x-dev updated 28 Mar 2024 at 14:21 UTC