- This topic has 3 replies, 2 voices, and was last updated 5 years, 6 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Adding button after category names, etc.
Tagged: V3
Hi there,
I’d like to add a button after items in the search and filter form that have children without using javascript. This button would be used to slide toggle the children. I’ve currently implemented this by inserting the buttons with javascript after rendering which you can see in the image but it’s really not the way it should be done and every now and again it can be finnicky. Is there a way I can hook into the output of the query with a filter or something like that? Ideally, I’d like to be able to code “if item has children, <button class=”some-class”></button> after outputting the name/results.”
Here is my current working sidebar with javascript.
Thanks in advance!