Home › Forums › Calendar Products › Events Calendar PRO › Edit Tribe Events Bar
- This topic has 5 replies, 2 voices, and was last updated 7 years, 11 months ago by Nico.
-
AuthorPosts
-
May 17, 2016 at 11:57 am #1115534siriuslyParticipant
Hi — I’ve searched forums & knowledgebase, but am not finding the answer to this… Where can I change the text for the Tribe Events Bar (“Events In” ; “Date” ; “Search” ; and the submit button “Find Events”)? Thank you!
May 17, 2016 at 1:05 pm #1115596NicoMemberHi there @siriusly,
Thanks for reaching out! I’ll help you with this…
You can change those labels using the snippet in this knowledge base article: Change the wording of any bit of text or string. Also there a super handy plugin called Say What? that provides a GUI to do this.
Please let me know if you can make it work or if you still need help,
Best,
NicoMay 17, 2016 at 1:54 pm #1115628siriuslyParticipantThanks! So, I’m _close_ to what I want using the functions.php snippets… (actually easier than the Say What plugin IMHO).
I’d like the “Search” label and the placeholder text to be different, so the label says “Search for” and the placeholder text says “Enter text” … how would I accomplish that?
May 19, 2016 at 6:24 am #1116345NicoMemberHey glad to hear we are close to nail this!
As both texts use the same translation you’ll need to add an extra snippet to change one of them:
/**
* Modify tribe bar search input label
*/
function tribe_modify_bar_search_placeholder ( $filters ) {if ( isset ( $filters['tribe-bar-search'] ) ) {
$filters['tribe-bar-search']['caption'] = 'Another string';
}return $filters;
}add_filter('tribe-events-bar-filters', 'tribe_modify_bar_search_placeholder', 10 , 1 );
Please let me know if this works as expected now,
Best,
NicoMay 23, 2016 at 8:55 am #1117820siriuslyParticipantWorks perfectly! Thank you!
May 23, 2016 at 8:35 pm #1118071NicoMemberThanks for the heads-up! I’m really glad to hear 🙂
I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.
Best,
Nico -
AuthorPosts
- The topic ‘Edit Tribe Events Bar’ is closed to new replies.