Forums Forums Search & Filter Pro Adding button after category names, etc.

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #260939

    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.
    Example

    Thanks in advance!

    Anonymous
    #260940

    IMG didn’t show for whatever reason. Here’s a link:

    https://ibb.co/fHrgsH4

    Trevor
    #261053

    Until we release V3 in a few months time, unfortunately, the way you have done it is the only way.

    Anonymous
    #261164

    Ah, bummer. Ok, you can close this question. Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)