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 have a menu for which all links open a Lightbox. I would like to set up the default rel attribute for this menu, so all items added to this particular menu will function without the client having to enter the lightbox-specific rel each time.
Is there a way to set up this default using this module, without setting this as the default for all menus? Should I be using template.php instead? If that's the case, can someone point me in the right direction?
Comments
Comment #1
renenee CreditAttribution: renenee commentedHello, Sorry if I'm bumping too soon, but I wonder if I'm just missing something here, or if there is a fix with template.php. Thank you!
Comment #2
amateescu CreditAttribution: amateescu commentedThe module does not currently offer this functionality (setting defaults only for specific menus), so your best bet is doing it in template.php, by overriding theme_menu_link.
Comment #3
renenee CreditAttribution: renenee commentedThat's exactly what I was looking for. Thank you so much!