Hello,
I need to implement a view with a search filter using checkboxes for multiple selection of taxonomies. The taxonomies are hierarchical but they don't show as hierarchical on the "Set of checkboxes" type of control. They do or all the other control options but not this one. Is there any particular reason for this? Can I target the child taxonomy checkboxes to add some structure via CSS?
The "set of checkboxes" option is the only one that would work for this filter, the select multiple option isn't intuitive to use and other options don't allow you to choose multiple options.
Thanks
Hi,
Thank you for contacting us and I'd be happy to assist.
Your observation is correct and when checkboxes type front-end search filter is used in the view, it doesn't show the terms in their hierarchy.
We have an internal ticket to improve this in future releases and I've also added your voice to this matter, but, I'm afraid, I don't have a time estimate to share at the moment.
As there is no class or ID available which can be used to target checkbox items based on their hierarchal level, as a workaround you can include a custom CSS code, that either uses IDs of individual checkboxes or the "nth-of-type" selector ( ref: hidden link ) to show the parent level terms differently than the children.
For more personalized assistance around custom code, you can also consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/
regards,
Waqar
Thanks Waqar, yes it seems like something that needs to be fixed so thanks for adding my request to the internal ticket.
In the meantime I'll try and work something out using the"nth-of-type" selector.