Close

Adding a drop down menu in the Header menu

[email protected]
10 years ago
#2956 Quote
Avatar
  • 14
Hi

In the Jewelry theme, is it possible to add an additional drop down menu in the Header Menu

I would like to add a tab called "How to", and once clicked it brings out the menu where I have topics like track your order, My rewards Points, My account etc.

How can this be done?

thanks
IvanStoyanov
10 years ago
#2961 Quote
Avatar
  • Moderator
  • 269
[email protected] wrote:
Hi

In the Jewelry theme, is it possible to add an additional drop down menu in the Header Menu

I would like to add a tab called "How to", and once clicked it brings out the menu where I have topics like track your order, My rewards Points, My account etc.

How can this be done?

thanks


Hi pjhenning,

To add a custom menu dropdown you need to go to Plugins/SevenSpikes.Nop.Plugins.MegaMenu/Views/MegaMenu/ and open the MegaMenu.cshtml view.

In the view pick a place where you want the additional dropdown to appear.
After that add the following code:


         <li>
            <a href="#">@T("CustomDropdown")</a>
            <ul>
                  <li>
                        <a href="@Url.RouteUrl("Topic", new { SystemName = "customtopic" })">@T("CustomTopic")</a>
                  </li>
                   <li>
                        <a href="@Url.RouteUrl("Topic", new { SystemName = "customtopic2" })">@T("CustomTopic2")</a>
                  </li>
            </ul>
        </li>


You need to change the topic names and resources for your needs.

Ivan Stoyanov
Thank you for choosing our products! Your feedback is important to us!
[email protected]
10 years ago
#2969 Quote
Avatar
  • 14
Hi

Please can i ask for a bit more details.  

I am  not a Web developer and my knowledge is extremely limited

Once i have played the code  the tab is theft in the header but the items that is supposed to be in a dropdown is not.

So i need to create anything within the topic of language section

Thanks