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

redhatusr’s picture

Issue summary: View changes

same problem here, block menu, active class is added only on the first li
Perhaps this is a bug?

redhatusr’s picture

I disable the menu and I create a new block and print the menu from the new block with this code

<?php
$block = module_invoke('om_maximenu', 'block_view', 'om-maximenu-1');
print render($block['content']);
?>

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