Close

Search box in menu bar

drcomputer
11 years ago
#2115 Quote
Avatar
  • 33
I am using nopcommerce 2.8 with electronics theme. how to place search box in megamenu bar
IvanStoyanov
11 years ago
#2118 Quote
Avatar
  • Moderator
  • 269
drcomputer wrote:
I am using nopcommerce 2.8 with electronics theme. how to place search box in megamenu bar


Hi drcomputer,

To do this go to Views/Shared/Header.cshtml
find the following line and delete it:

@Html.Action("SearchBox", "Catalog")


After that go to Plugins/SevenSpikes.Nop.Plugins.MegaMenu/Views/MegaMenu.cshtml

go to the bottom of the file line 70-71 and add the following code after the last
li
element:

<li>
            @Html.Action("SearchBox", "Catalog")
        </li>


NOTE: You may require a little styling of the search box after this.

Ivan Stoyanov
Thank you for choosing our products! Your feedback is important to us!