Close

Close-menu

robinrogne
6 years ago
#13564 Quote
Avatar
  • 11
Hi i am customizing the responsive mega-menu. I have made a few changes, but there's one thing i cant figure out how to change it properly.
At the top of the menu, there is a close-menu.
<div class="close-menu">
      <span>Close</span>
</div>
.
I would like to add few links in that header, and a dropdown but i cant find where the code is. The only thing i have found for it is css. Is it inserted in some minfied js-file?
anton_ivanov
6 years ago
#13570 Quote
Avatar
  • Moderator
  • 277
Hello,

Can you elaborate more on the changes you want to make? Right now I cannot really understand what you are trying to achieve or what you are asking for that matter and it's hard for me to help you.
Also, can you tell us what version of the Mega Menu you are using?

If you want to add something to the responsive menu you should alter the following code in ~/Plugins/SevenSpikes.Nop.Plugins.MegaMenu/Views/MegaMenu/MegaMenu.cshtml on line 155:

    <ul class="mega-menu-responsive @menu.CssClass">
        @foreach (var responsiveMenuItem in responsiveMenuItems)
        {
            @responsiveMenuItem
        }

        @Html.Widget("header_menu_after")
    </ul>

Just add your code before or after the foreach loop to insert elements as first or last items in the menu.

Hope that helps!
Regards,
Anton Ivanov
Nop-Templates.com