Active Menu Trail

paypal8's picture
paypal8
Mon, 05/13/2013 - 23:36
#1
Active Menu Trail

Hi there MD peoples,

Great MM module... one enhancement you might consider is also adding CSS class name for the current active trail.

I've 'patched' the md_megamenu.utils.inc to include the following for is_active_link at line 553 -

 elseif(strpos($current, $path)!== FALSE ){
          $is_active = TRUE;
      }

In this instance it will add the 'mm-active' class name for an active trail... while this suits my purposes, you might however consider add a new test routine to include the a specific active trail class name.

Cheers.

 

 

 

Neo's picture
Neo
Tue, 05/28/2013 - 22:41

thank you, I applied the patch to version 7.x-1.11

info26's picture
info26
Wed, 12/16/2015 - 01:45

there no active trail in my newer version. why?

everaftergraphics's picture
everaftergraphics
Tue, 08/08/2017 - 18:00

I need an active trail on my menu ASAP - I bought this module for an urgent project. Is there any patch to get this to work?

phuonght's picture
phuonght
Wed, 08/09/2017 - 00:58

Hi,

We have active trail already in module. You can please check in tag <li>: "awemenu-active-trail". There is color style for tag <a> also.

If it does not work, please send us your site admin account and FTP account in private comment so we can have a check.

Thank you.

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.