Home page – Popular Categories – Limit categories
-
I want to select only a few subcategories instead of displaying them all. How can I do this?
Attachments:
You must be
logged in to view attached files.
Hello,
This is the default styling for Woodmart’s “Categories Design Side” layout. I can explain what each section is doing and how it affects the widget. However, to control which subcategories appear, you still need to select the subcategories in Products > Categories.
If your goal is to limit the height of the subcategory list and make it scrollable or clipped, that can be done using CSS. If you want, I can take a closer look at your site and provide a possible solution for this.
Best Regards,
Hello, so there is no way to limit the subcategories in this block without changing the structure in Products > Categories?
Hello,
Try to add the following custom css code in Theme Settings > Custom CSS to Limit height and make it scrollable.
.cat-design-side .wd-cat-sub-menu {
max-height: 150px; /* adjust height as needed */
overflow-y: auto; /* adds vertical scroll */
}
To Limit height and hide extra items (no scroll)
.cat-design-side .wd-cat-sub-menu {
max-height: 150px; /* adjust height */
overflow: hidden; /* hides anything beyond max height */
}
Hope this Helps!
Best Regards,