Can set the layout for example 4 col or 3 col for categories on homepage or must change the code?
@model IList<CategoryModel>
@inject DisplayOrderHomePage order
<div class="categoryGrid order-@order.HomePageCategories">
<div cols="12" class="col-12 px-0">
<div class="form-row">
@foreach (var item in Model)
{
<div class="col-xl-@order.Pc_Xl col-lg-@order.Pc_Lg col-md-@order.Pc_Md col-sm-@order.Pc_Sm col-@order.Pc_Col">
That @order.Pc_Xl.. @order.Pc_Lg .. @order.Pc_Md.. comes from DisplayOrderHomePage.cs
using Grand.Domain.Configuration;
namespace Grand.Domain.Common
{
public class DisplayOrderHomePage : ISettings
{
//Home page categories
public int HomePageCategories { get; set; }
public int Pc_Xl { get; set; } = 4; //default 4
public int Pc_Lg { get; set; } = 4; //default 4
public int Pc_Md { get; set; } = 6; //default 6
public int Pc_Sm { get; set; } = 6; //default 6
public int Pc_Col { get; set; } = 12; //default 12