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 would like to give the actived link (tab) in the main menu a class so that I can style it. Is it possible that the link (tab) keeps this class aslong as that specific path is used??
I selected the "add active-trail to menu li when submenus are active"
this sets a .active to the first menu li when clicking other LI's this doesn't set the .active to that LI.
when clicking a link in the submenu this sets the .active to the clicked link.
the coding etc that Í have read in the other issue's didn't work.
I am not a programmer so maybe that's realy the issue here.....
Comments
Comment #1
redhatusr CreditAttribution: redhatusr commentedsame problem here, block menu, active class is added only on the first li
Perhaps this is a bug?
Comment #2
redhatusr CreditAttribution: redhatusr commentedI disable the menu and I create a new block and print the menu from the new block with this code
This solution seems to working only for non-multilingual sites
for multilingual sites the active class is working only for , contact, and pages created from views