Problem: I have a custom search View that includes several checkbox filters grouped under the heading "Select Features". I have activated the "Only show available inputs" option and I'm using AJAX updates. When no checkbox filters are available, this section becomes empty. I would like to remove the heading when no checkboxes are shown.
Solution: There is no built-in way to connect a filter heading with the filters grouped underneath it, but you could use custom JS and CSS to manipulate the DOM as needed. The Frontend Events button in your Filter Editor's JS panel will produce a template you can use to tap into filter changes or pagination events. Use "jQuery" instead of "$" in these callbacks for best results.
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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 3 replies, has 2 voices.
Last updated by 6 years, 9 months ago.
Assisted by: Christian Cox.