Close

Homepage Tiles - Restrict number of subcategory?

IntactCliqxTeam
one year ago
#22268 Quote
Avatar
  • 4
[ORIGINAL POST DELETED BY MISTAKE]
[original question was about if number of subcategories on home page can be restricted because they overlap the title if more than 6]
hristo
one year ago
#22278 Quote
Avatar
  • Moderator
  • 172
There is no restriction, all subcategories are shown.

There are two possible workarounds for this.

One is to switch your Home Page layout to Home Page Category Boxes Layout - Layout One from the Pacific Settings page. Layout One does not include subcategories at all. However it's a very different layout, you will probably need new slider images with it, etc.

The other one is to hide your subcategories by using some extra CSS code, like this:

.sub-categories-list {
    display: none !important;
}

Just put it into the "Custom Head Styles" panel on your Pacific Settings page in the administration and it will be injected into the site, hiding all subcategories on Home Page.
Here is also another piece of code that will allow up the 5 subcategories and will hide all the rest:

.sub-categories-list li:nth-child(n+6) {
    display: none;
}
Regards,
Hristo Gospodinov
Nop-Templates.com