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 had the requirement to associate a target attribute with a particular primary menu link. It looked like the menu_attributes module was just what I needed. However, theme.inc only copies over the title attribute, ignoring all others. This conflicts with the menu_attributes module making it ineffective.
Comment | File | Size | Author |
---|---|---|---|
#1 | use-all-attributes-1360424-1.patch | 797 bytes | David4514 |
Comments
Comment #1
David4514 CreditAttribution: David4514 commentedThe attached patch to theme.inc will include all attributes when using Marinelli's megamenu. I'm not sure if there is some danger to this, but it seems to be working for me. I am currently using the title (already present), target, and class attributes.