Home › Forums › Additional Help › Translations › Change "All Events" Back Link In Single Event View
- This topic has 6 replies, 1 voice, and was last updated 7 years, 8 months ago by Geoff.
-
AuthorPosts
-
July 27, 2016 at 9:50 am #1144724FazeGuest
I’m trying to change the wording for “All Events” in the single event view. It is the link that takes you back to the “events” page. I tried the snippet provided by the forum but it missed up my translations.
Any help with the issue is really appreciated.
FazeJuly 28, 2016 at 8:20 am #1145109GeoffMemberHey Faze, thanks for reaching out!
I think the best way to change the wording in this case would be to edit the single-event.php template here the link is located. You can find the template here:
/wp-content/plugins/the-events-calendar/src/views/single-event.php
The link starts on line 27.
It’s also worth noting that you can override calendar templates in your theme directory (more on this in our Themer’s Guide) to prevent losing any changes on future plugin updates.
Cheers!
GeoffJuly 29, 2016 at 5:35 am #1145490FazeGuestThanks Geoff for your prompt and informative response.
Now the “All Events” issue is resolved. What about “EVENTS FROM” and “Date” in the nav bar? I would like to change the wording on these too.Best,
FazeJuly 29, 2016 at 6:27 am #1145496GeoffMemberHi Faze,
You might want to consider using the Say What? plugin for your translations if you have several like this–managing the changes in the plugin will be much easier than managing them in templates. Say What? will let you change the text of any wording in the calendar.
Thanks!
GeoffJuly 29, 2016 at 7:01 am #1145511FazeGuestDear Geoff,
Say What misses some of the other translations on my website, that is why I need to figure out where to find the exact location of the strings in the nav bar from the code.Thanks
July 29, 2016 at 2:20 pm #1145695GeoffMemberAh, gotcha. Thanks for clarifying!
It’s a little tricky in this case because the search bar is generated with javascript. I would recommend editing the language file directly using a tool like POEdit. All the strings will be included in the .po file for your translation and will be much easier to maintain.
We have a tutorial that provides step-by-step instructions for overriding existing language files in the plugin so that changes do not get lost on future plugin updates.
Cheers!
GeoffAugust 10, 2016 at 7:34 am #1149943GeoffMemberHey Faze, I see one of my last replies was marked as the correct answer. I’ll go ahead and close this thread but please feel free to let us know if any other questions pop up and we’d be happy to help. 🙂
Cheers and have a great day!
Geoff -
AuthorPosts
- The topic ‘Change "All Events" Back Link In Single Event View’ is closed to new replies.