Is it possible to add a reset or clear button to the event bar?

Home Forums Calendar Products Events Calendar PRO Is it possible to add a reset or clear button to the event bar?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #135511
    integrity
    Participant

    On the event bar, not the filter bar plugin, is it possible to add a clear button? I tried adding just an input of type reset to the tribe bar form and that would successfully clear the form but not the filters. Is it possible to clear the filters as well?

    #136142
    Brook
    Participant

    Howdy integrity!

    It is interesting that you are not seeing a “Reset Filters” link. Perhaps your theme is hiding it? On the Vertical Filterbar it appears just below the list of filers, on the Horizontal it appears off to the right.

    This is the Javascript code that powers it. If you want to attach this to some other element, perhaps that will work better for you?

    Please let me know if you have any more questions. Thanks!

    – Brook

    #136251
    integrity
    Participant

    Is that code for the filterbar plugin or the events bar? https://theeventscalendar.com/understanding-the-tribeeventsbar/

    #139129
    Brook
    Participant

    That code is for the Filter Bar.

    – Brook

    #140372
    integrity
    Participant

    My question is about the event bar. Not the filter bar plugin.

    #142442
    Brook
    Participant

    I am very sorry, I should have understand that! This line of JS code will clear that form:

    jQuery('#tribe-bar-form').tribe_clear_form();

    You could attach that to a reset button with the onclick attribute, or even better you can use jQuery (first example in this link).

    Are we on the same page now? Did that do what you need? Please let me know.

    – Brook

    #146546
    integrity
    Participant

    Perfect, thanks!

    #170608
    Brook
    Participant

    You are welcome! Since that seemed to have worked for you I am  going to close this thread. Cheers!

    – Brook

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Is it possible to add a reset or clear button to the event bar?’ is closed to new replies.