Home › Forums › Calendar Products › Events Calendar PRO › Edit Events Notices
- This topic has 3 replies, 4 voices, and was last updated 9 years, 1 month ago by
Sarah.
-
AuthorPosts
-
February 27, 2017 at 10:06 pm #1246688
Sarah
ParticipantI’d like to edit the notice on the Calendar view where there are no events in the initial month it says:
No matching events listed under Trips. Please try viewing the full calendar for a complete list of events.
This phrase doesn’t make sense and has no link in it.
http://landrovers.wpengine.com/upcoming-trips/
Can you let me know how I can do this?
I have looked at your previous suggestion to someone to use: https://theeventscalendar.com/knowledgebase/change-the-wording-of-any-bit-of-text-or-string/I tried this code:
$custom_text = array(
‘No matching events listed under Trips. Please try viewing the full calendar for a complete list of events.’ => ‘NEW TEXT HERE’,
);But it didn’t change anything.
Is there any other way to change the text that appears here?February 28, 2017 at 10:29 pm #1247429Cliff
MemberHi, Sarah.
That notice is coming from https://github.com/moderntribe/the-events-calendar/blob/4.4.3/src/Tribe/Template/Month.php#L377 (specific to Month View)
However, these also exist:
- https://github.com/moderntribe/the-events-calendar/blob/4.4.3/src/Tribe/Template/Day.php#L145
- https://github.com/moderntribe/the-events-calendar/blob/4.4.3/src/Tribe/Template_Factory.php#L299
- https://github.com/moderntribe/the-events-calendar/blob/4.4.3/src/Tribe/Template_Factory.php#L304
When doing custom text, like you referred to, you need to use/replace the entire original text (“No matching %1$s listed under %2$s. Please try viewing the full calendar for a complete list of events.”) — yes, using %1$s and not the word events.
You could go that route, but a plugin like Say What? (third-party, not guaranteed or supported by us) might be easier and more thorough a replacement than the code snippet we provided.
Please let me know how this goes for you.
March 22, 2017 at 9:35 am #1258181Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Edit Events Notices’ is closed to new replies.
