Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I need to set a class to a menu link a tag. Using the menu attribute module results in the li tag receiving the class instead. How do I add a class to the a tag of a menu link? This is demonstrated here: https://www.youtube.com/watch?v=RB7mckbDyd8, but attempting to follow results in the li tag receiving the class instead. Please advise.
Comment | File | Size | Author |
---|---|---|---|
#7 | Edit_menu_link___Drupal_standard.png | 87.07 KB | joelpittet |
Comments
Comment #2
Tamuren CreditAttribution: Tamuren commentedComment #3
joelpittetMenu item is the
<li>
tag. Menu link is the<a>
tagComment #4
Tamuren CreditAttribution: Tamuren commentedThank you for the definition. How do I add a class to the Menu link?
Comment #5
Tamuren CreditAttribution: Tamuren commentedComment #6
Tamuren CreditAttribution: Tamuren commentedComment #7
joelpittetInside the fieldset that says menu link attributes: