Tyler Frankenstein's Drupal Association Membership Tyler Frankenstein GItHub Link

css

Drupal How to Add a CSS ID or Class Name to a Menu Item Link

Do you need to add a unique CSS ID or Class Name to a Drupal menu item link? Then you've come to the right place. Check out this example below...

Menu item link before:

<a href="/my_node_url_path">My Node</a>

Menu item link after:

<a href="/my_node_url_path" id="my_css_id" class="my_css_class">My Node</a>

How to do it...

Subscribe to RSS - css