.ribbon-wrapper {
height: 100%;
}
<ul class="subcategories">
@foreach (var subCategory in item.SubCategories.Take(megaMenuSettings.NumberOfCategories))
{
<li>
<a href="@Url.RouteUrl("Category", new { SeName = subCategory.CategoryModel.SeName })" title="@subCategory.CategoryModel.Name">
@subCategory.CategoryModel.Name</a>
</li>
}
@if (item.SubCategories.Count == megaMenuSettings.NumberOfCategories)
{
<li>
<a class="view-all" href="@Url.RouteUrl("Category", new { SeName = item.CategoryModel.SeName })">@T("SevenSpikes.MegaMenu.ViewAllCategories")</a>
</li>
}
</ul>
Hello, JHOPPER!
As far as I understood, you want to have less rows and more categories on a row. For example - 12 categories per row and three or four rows. Consider that if you want to do this, you will have too little space for a category - let`s say your menu is 960px wide and if you have 12 categories each category will be 80px wide.
Anyway, if you want to achieve this, you have to open /Plugins/SevenSpikes.Nop.Plugins.MegaMenu/Views/MegaMenu/CategoryMenuTemplate.WithPictures.cshtml file and find this row: @(Html.DataTable<SevenSpikes.Nop.Plugins.MegaMenu.Models.MegaMenuCategoryModel>(Model.CategoriesModels, 4, "row", "box" . The number "4" sets the number of categories per row. So you can change it freely to 12. The other change is in ~/Plugins/SevenSpikes.Nop.Plugins.MegaMenu/Themes/YOUR-THEME/Content/MegaMenu.css
file and change the width in this rule:
.mega-menu .box {
width: 80px;
}
I hope this helped!
Hi, IMPRINTABLESWAREHOUSE
You have to change the logic in \Plugins\SevenSpikes.Nop.Plugins.MegaMenu\Views\MegaMenuCategoryMenuTemplate.InfiniteCategories.cshtml. You must replace this code
<li>
<a href="@Url.RouteUrl("Category", new { SeName = subCategory.CategoryModel.SeName })" title="@subCategory.CategoryModel.Name">@subCategory.CategoryModel.Name</a>
@if (subCategory.SubCategories.Count > 0)
{
<ul class="sublist">
@CreateSubLists(subCategory.SubCategories, categoriesCountSetting, subCategory.CategoryModel.SeName)
</ul>
}
</li>
<li>
@if (subCategory.SubCategories.Count > 0)
{
<a href="@Url.RouteUrl("Category", new { SeName = subCategory.CategoryModel.SeName })" title="@subCategory.CategoryModel.Name">@subCategory.CategoryModel.Name</a>
<ul class="sublist">
@CreateSubLists(subCategory.SubCategories, categoriesCountSetting, subCategory.CategoryModel.SeName)
</ul>
}
else{
<a class="noBackgroundClass" href="@Url.RouteUrl("Category", new { SeName = subCategory.CategoryModel.SeName })" title="@subCategory.CategoryModel.Name">@subCategory.CategoryModel.Name</a>
}
</li>