Menu attributes module are used to add some extra attributes for the menu item such as ID, Classes, Title, Name, Relationship, Style, Target and Access Key.
Before Menu Attributes module, we had to go deep into php code and write hooks for even adding a single class to a menu item. Now, you can add a class, target or any other property by using Drupal Administration. Since Menu Attributes module provides a UI, a non-programmer can add the additional attributes to a menu item. It allows you to control how you want do display an individual menu item and you are no more limited to make every single main menu item to look identical. By adding custom classes or IDs to each menu item, you can add icons and animations as well.
Steps to use the Menu Attributes Module:
- Download Menu Attributes module (drupal.org/project/menu_attributes)
- Install and enable the module.
- Navigate to "Structure" -> "Menus" -> "Main Menu" > "List links"
- Edit any menu item, see screenshot below
It allows you to set the following attributes:
- Title
- Id
- Name
- Relationship
- Classes
- Style
- Target
- Access key
Contact us today to discuss about your requirements of Drupal Development.