Menu icon
RedCrackle
Menu icon
Services
01Design Transformation
About UsCase StudiesBlogContact Us

<

Blog post

Using Menu Attributes in Drupal 7

Neerav Mehta

Founder & CEO

Menu attributes allow you to specify some additional attributes for the menu item such as Title, ID, Name, Relationship, Classes, Style, Target and Access Key.

Before Menu Attributes module, we had to dig 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:

  1. Download Menu Attributes module (drupal.org/project/menu_attributes)
  2. Install and enable the module.
  3. Navigate to "Structure" -> "Menus" -> "Main Menu" > "List links"
  4. Edit any menu item

It allows you to set the following attributes:

  • Title
  • Id
  • Name
  • Relationship
  • Classes
  • Style
  • Target
  • Access key
Neerav Mehta

Neerav Mehta

Founder & CEO

Neerav Mehta is the Founder & CEO of Red Crackle. With sterling qualities, Neerav’s technological acumen is firing a generation of progressive companies on the digital path. With an undergraduate degree in Electrical Engineering from India's most prestigious institution IIT Bombay and having spent seven years developing and contributing to the launch of AMD's innovative line of computer products, Neerav founded Red Crackle where he is lauded for his dynamic and innovative genius.

View all posts

>

Read Next

10 Tips For Entrepreneurs In 2015

10 Tips For Entrepreneurs In 2015

Learn more

10 Ways To Increase Productivity At Work

10 Ways To Increase Productivity At Work

Learn more

30 best WordPress widgets for your site

30 best WordPress widgets for your site

Learn more

Let’s get you started!

Contact Us

>

RedCrackle

Explore

About Us

Services

Contact Us

Our address

5346 Gerine Blossom Dr,

San Jose, CA 95123

USA

Socials

Twitter
LinkedIn

© 2023 RedCrackle. All rights reserved.