[Gelöst] Using JavaScript to expand more search filters isn't working right
This support ticket is created vor 3 Jahren, 3 Monaten. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
I'm trying to have a button to open up advanced search filters on this page: versteckter Link The website is under construction, but I have made that page live to help with troubleshooting.
I've got the button to open the advanced search filters working, but when ever the user makes a selection it closes the advanced filters. I can see the "Clear Search" button being activated, which I think is the cause.
I can post my html, css and javascript if needed, but you should be able to see it using the link above.
The problem here is that your filters are set to refresh once a selection is made. What this does is to ensure that none of your filter items will produce a "No Results Found" hence why the advanced filter options are being hidden and you have to re-open it again.
There are 2 ways to solve this. The first way is to disable the refresh of the filter area and allow it to always be displayed regardless of if the selections will produce no results.
The second way is to modify your javascript to use your browsers localstorage to save a value which will allow you to re-open the section once the filter refreshes.
If you're not sure how to do either please let me know and I will provide further clarification on the method you choose.