nonam wrote:Hello:
Is there a way to add an additional "Sticky Category" to the Mega Menu? In the settings of the Mega Menu, I know that you can check the option of adding a category as a sticky one but I would like to have 2 sticky categories to my Menu.
Thanks for your help!
Hi,
To do this you have to modify the MegaMenu.cshtml file.
Right after the code for the sticky category, which is this:
if (Model.StickyCategory != null)
{
<li class="sticky-category">
<a href="@Url.RouteUrl("Category", new { SeName = Model.StickyCategory.SeName })" title="@Model.StickyCategory.Name">@Model.StickyCategory.Name</a>
</li>
}
Place your code for your category, following the same mark-up structure.
I hope this helped !