Osclass Support Forums

Osclass theme support => Free themes => Patricia Osclass Responsive Theme => Topic started by: piter on January 23, 2019, 02:25:57 AM

Title: Main menu with categories - how to add more categories?
Post by: piter on January 23, 2019, 02:25:57 AM
HI
The main menu with categories sellection shows 10 boxes only. Even if more categories is defined in admin panel only last 10 appear on the menu - other are hidden.

I need that 14 categories would be shown.

How to make the main menu display two rows one under the other, with 7 categories on each row?
Title: Re: Main menu with categories - how to add more categories?
Post by: MB Themes on January 23, 2019, 08:57:55 AM
Based on how box is designed, maximum is 10 categories that can be shown at home.
Title: Re: Main menu with categories - how to add more categories?
Post by: Yuri on January 23, 2019, 02:24:31 PM
?????????
Title: Re: Main menu with categories - how to add more categories?
Post by: piter on January 23, 2019, 10:04:27 PM
This is how I need it. Menu with second row for more categories.

(https://i.imged.com/i-58804738.jpg)
Title: Re: Main menu with categories - how to add more categories?
Post by: MB Themes on January 25, 2019, 08:03:59 AM
In file:
oc-content/themes/patricia/main.php

Find:
Code: [Select]
<li <?php if($i 10) { ?>style="display:none;"<?php ?>>
and change here number 10 to whatever number you want. I.e. if there is 10, it means 11th and later category is hidden.
Title: Re: Main menu with categories - how to add more categories?
Post by: piter on January 25, 2019, 06:11:42 PM
... its done now :-), thanks MB Themes for your help.

 With a bit of css and google font-awesome changing I achieved what I wanted - 2 row menu / 8 categories per row with individual icons for each category