This module allows you to add attributes to your menu links or their wrapping

  • elements.

    Installation โ˜๏ธ

    1. Enable Menu Link Attributes module
    2. Grant Use menu link attributes permission to users which should be able to set attributes on menu items
    3. Set available attributes on /admin/config/menu_link_attributes/config

    Screencasts ๐Ÿ“บ

    Container attributes

    In order to provide attributes for containers (wrapping

  • 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
    Short name
    menu_link_attributes
    Supporting organizations
    D9 / D10 support
    proudly helps to maintain this module for the Drupal community