Clear Search Criteria from Search Bar

Home Forums Calendar Products Events Calendar PRO Clear Search Criteria from Search Bar

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1631758

    I have a client who’d like the ability to have a button next to Find Events that clears and resets the search. I had hopes that the Reset Filters on the filter bar might clear both but that does not seem to be the case.

    Is there a solution out there for this?

    #1632810
    Edward
    Member

    Hey there Diana!

    Thanks for reaching out — that’s a great question, I can help with that 🙂

    Though this isn’t a feature that is built into The Events Calendar, it can be added for sure.

    First, using our Themer’s Guide you’ll want to create a link or button that can be used to reset the search field. You could attach that to a reset button with the onclick attribute, or even better you can use jQuery (first example in this link).

    The JS code to be triggered would look like →

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

    Hope that helps!

    #1645791
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Clear Search Criteria from Search Bar’ is closed to new replies.