How to change the default labels in the filter bar on the events page

Home Forums Calendar Products Events Calendar PRO How to change the default labels in the filter bar on the events page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1028214
    Denis
    Participant

    Hi, I’ve followed the instructions from https://theeventscalendar.com/knowledgebase/change-the-wording-of-any-bit-of-text-or-string/

    But still have no luck trying to modify the labels used in the filter bar search bar on the events page. For example I wish to change the label “Events In” to “Change Date”

    Also, I can’t location where in the php files these labels are hard coded

    Two questions:

    1) What label should put in the $custom_text to modify the “Events In” text

    or

    2) Which php file has the label text “Event In”, as I can’t seem to locate it?

    #1028215
    Denis
    Participant

    This reply is private.

    #1028347
    Josh
    Participant

    Hey Denis,

    Thanks for reaching out to us!

    Take a try with this snippet and see if it works to change the text for you:

    https://gist.github.com/BeardedGinger/244ac5e28b6d965e868f

    Let me know if this helps.

    Thank!

    #1028392
    Denis
    Participant

    Hi Josh,

    Thanks that worked a treat!! Is there a similar filter hook (like ‘tribe_bar_datepicker_caption’) for the “Search” Label.

    Denis.

    #1030180
    Josh
    Participant

    Hey Denis,

    Glad that worked for you!

    For this one you may need to do a bit further customization. Take a look at the “setup_keyword_search_in_bar()” function and how it filters the the $filters array using the “tribe-events-bar-filters“. You can create a new function and add it as a filter where you modify the “caption” for the search setup there.

    Let me know if this helps.

    Thanks!

    #1075767
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How to change the default labels in the filter bar on the events page’ is closed to new replies.