How could I go about adding a second category filter to sort the list of portfolio items?
I have tried enabling “subcategory filtering”, which could really solve my problem if I could get the filter to show all the subcategories at once, instead of showing only my two parent categories.
How could I go about adding a second category filter to sort the list of portfolio items?
I have tried enabling “subcategory filtering”, which could really solve my problem if I could get the filter to show all the subcategories at once, instead of showing only my two parent categories.
Any tips on how I achieve this?
Thanks, have a great day
Hi there,
That's not possible through the theme options but using Custom CSS you can show all the sub-categories which are hidden:
.subcategory-active.product-filter .portfolio-root-categories li { visibility: visible; opacity: 1; transform: none; } .product-filter .portfolio-subcategory { position: relative; visibility: visible !important; } .product-filter .portfolio-subcategory li { visibility: visible; transform: none; opacity: 1; }Best regards,
Laborator Team
Hi Art,
Thank you so much, exactly what I needed :-) Will you help me tweak it a little?
I'd like to hide the parent categories at all times, except "All" – is that possible?
Please see http://spacelab.dk.linux2.scannetserver.dk/ if you need to.
Hi again,
Use this CSS to hide the parent categories:
.subcategory-back-href { display: none !important; }Best regards,
Laborator Team