I wish to know if anyone has found a working solution yet to expand/collapse categories and subcategories in the search form.
Thanks for your message — our team will reply shortly.
In the meantime, you can also get instant help from our AI Assistant, familiar with all the docs and solutions we’ve shared over the years.
Hi,
Just to clarify, are you looking to collapse and expand the block with categories and subcategories? At the moment, categories and subcategories in the filter form become scrollable when there are many items.
No it’s not what I want. It does not look good that way. I wish I could get the search form file to replicate in the child-theme and add javascript to it so that categories and subcategories could expand/collapse. Hivepress developers, please let us have the info that would be used by other developers to create a custom listing search form in the child theme.
Unfortunately there’s no simple code snippet to implement the described UI, but we plan to add it in future updates. Currently, categories expand, but after the form refresh (if you select a category and click Filter, then child categories are listed). If you want to add custom JS logic, it’s possible if you add custom JS code (either to the child theme or via the code snippets plugin), the form CSS class is hp-form--listing-filter.
Hope this helps
Thanks! I haven’t been able to do anything in my web development project in a while. Anyway, I’ll keep checking if the update becomes available with this expand/collapse category feature in the search form.