Home › Forums › Calendar Products › Events Calendar PRO › Change text on Find Events search button?
- This topic has 6 replies, 2 voices, and was last updated 8 years, 7 months ago by Barry.
-
AuthorPosts
-
August 26, 2015 at 4:45 pm #999399Mad DogParticipant
How can I change the text on the FIND EVENTS button in the search bar of the list view page? Not just the word “events” which I already changed site-side, but the whole thing. The client insists they want it to say “Click to Search.”
Oy
Thanks
August 27, 2015 at 6:38 am #999515BarryMemberHi Barry,
You certainly can!
Please review our Themer’s Guide first of all as it provides a good explanation of how template overrides work. In essence, though, you would copy this file:
plugins/the-events-calendar/src/views/modules/bar.php
Place the copy in your theme, like this:
themes/YOUR_THEME/tribe-events/modules/bar.php
Then locate this line:
<input class="tribe-events-button tribe-no-param" type="submit" name="submit-bar" value="<?php echo esc_attr( sprintf( __( 'Find %s', 'tribe-events-calendar' ), tribe_get_event_label_plural() ) ); ?>" />
Simply change it to:
<input class="tribe-events-button tribe-no-param" type="submit" name="submit-bar" value="Click to Search" />
Does that help?
August 27, 2015 at 6:39 am #999518BarryMember…I forgot to link to the Themer’s Guide – you can find it here:
August 27, 2015 at 8:22 am #999607Mad DogParticipantThanks. I should be able to get this changed. I’ve been making lots of these changes but the template hierarchy gets complicated and the Themer’s Guide doesn’t list all the module files. Maybe the Guide can be updated to include the module files — I never would have guessed bar.php was the one without drilling down through a couple of other template files first.
August 27, 2015 at 10:33 am #999642BarryMemberThanks for the feedback: getting our documentation right is important and we genuinely appreciate this sort of constructive criticism – I’ll make a note for us to revise and update this area 🙂
August 27, 2015 at 2:50 pm #999751Mad DogParticipantEasy change. THANKS
August 27, 2015 at 4:38 pm #999768BarryMemberGlad it worked 🙂
-
AuthorPosts
- The topic ‘Change text on Find Events search button?’ is closed to new replies.