Important

Okay
  Public Ticket #1231035
Active class on parent
Closed

Comments

  • Maarten started the conversation

    We have this module and I would like to know how can we change the color of the main menu item when a child is selected

    The active class is only added on the submenu item not on the parent item.


    Hope you hear from you

  •  1,319
    Land of replied

    Hello Mate,

    Have a nice day!

    Thanks you for your ticket. For now the megamenu we just allow active current menu items, not have function to active parent menu item. 

  • Maarten replied

    Hi,

    Found it out myself.

    in the templates/menu_top.phtml I add this line at the end of the document ready function.

    $( ".submenu.dropdown-menu.active").parent().addClass("active");
  •  1,319
    Land of replied

    Hi

    Please send to me link site.

    Then I can see problem

    Thanks