Module Description
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 📺
* Installation
* Container attributes
* Other widgets for editing attributes
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
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 📺
* Installation
* Container attributes
* Other widgets for editing attributes
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
Module Link
Project Usage
57162
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module solves the problem of adding attributes to menu links or their wrapping <li> elements.
Data Name
menu_link_attributes