Toggle Parent Categories
-
The solution provided to my previous post (https://wordpress.org/support/topic/toggle-collapse-expand-parent-categories/#post-15199174) does not work as needed. In order to expand each category to see subcategories, you have to check the category, but then checking a subcategory has no effect because it doesn’t overwrite the checked parent category selection. Like this: https://www.loom.com/share/15f2750a98eb49e89babf952bca913c9
Ideally:
The parent categories should have + beside them, not a checkbox;
The (child) subcategories, when checked should have AND logic with other categories and filters.I’ve managed to find a way to make it LOOK the way I’d like it to look but it doesn’t work properly. I can’t scroll down past a certain point with the filters on the left and can’t choose multiple subcategories from different parent categories and successfully display them. Here’s the test page: https://festivalfurniture.com/office-furniture-test-toggles/
See this demo: https://www.loom.com/share/043b5d29e9634b6db52826aa343aa08e-
This topic was modified 4 years, 4 months ago by
ljknechtel. Reason: Added tags
The page I need help with: [log in to see the link]
-
This topic was modified 4 years, 4 months ago by
-
Hi,
If you mean that you can not scroll inside your sticky sidebar, that is related to your theme, please contact your theme’s developers about this issue or disable the sticky-sidebar ( if your theme allows that ), in a regular sidebar if you scroll down you can see all bottom filter elements.
Yes, I can address that. I just want to know how to make the filter work as desired. Thank you.
Could you please clarify how you would like the filter to work?
Thank you for your response.
I would like it to look like this.
https://www.loom.com/share/336dc566b0de4dbab5bb5cbd2ef316caAs mentioned above, I managed to get it to LOOK the way I want it to, but the filters don’t work as they should – with AND logic. Selecting more than one child category doesn’t work. Deeselecting them doesn’t work (ie. it doesn’t remove the products in the deselected category from the products displayed.
Test it here: https://festivalfurniture.com/office-furniture-test-toggles/
Again, ideally:
– The parent categories should have + beside them, not a checkbox
– The child categories, when checked should have AND logic so they can be selected with other child categoriesIs there a PRO version of this plugin that includes this functionality?
Thank you.
This point seems to be resolved: – The parent categories should have + beside them, not a checkbox
and
– The child categories, when checked should have AND logic so they can be selected with other child categories for this you need “OR” if you want to mix 2 Child Categories, the “AND” logic will only show products published in both selected sub-categories, eg. if you select Cat1 and Cat2, then it will show only products that have both Cat1 and Cat2, with “OR” if you select Cat1 and Cat2, then products from both categories will show up. If I deselect sub-categories, the filter will reset, so it will show all published products from your Shop Page, but deselecting a filter doesn’t mean it will hide the product from your shop, see screen-recording: https://share.getcloudapp.com/7KuqxwJP
The topic ‘Toggle Parent Categories’ is closed to new replies.