Home › Forums › Calendar Products › Events Calendar PRO › How to change "Upcoming events" ?
- This topic has 8 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
February 1, 2016 at 5:56 am #1065496
Bart
ParticipantHow can I change the title on the main calendar? I don’t see any way to easily change the title. Currently it says “Upcoming events” and we would like to alter this.
February 1, 2016 at 8:58 am #1065820George
ParticipantHi @Bart,
At this time you can only change this with some custom coding.
For example, if you wanted to use “Our Classes” instead of “Upcoming Events”, you would add code like the following to your theme’s functions.php file:
add_filter( 'tribe_events_title', 'tribe_change_upcoming_events_text' );function tribe_change_upcoming_events_text( $title ) {
return 'Our Classes';
}
I hope this helps – cheers! 😀
— George
February 1, 2016 at 9:30 am #1065852Bart
ParticipantUnfortunately this does not? Maybe it does not work because the site is non-English?
February 2, 2016 at 6:40 am #1066377George
ParticipantI’m sorry about that, @Bart. We might be referring to different instances of the phrase “Upcoming Events”, of which there are many instances throughout our plugin….
So to help ensure we’re referring to the same exact string, can you take a screenshot of the exact “Upcoming Events” phrase on your site that you’re referring to? You can then share image here by uploading the screenshot to Imgur.com, Flickr.com, CloudUp.com, or any similar image-hosting site; then just share the links to those images here and I’ll take a look.
Thank you!
GeorgeFebruary 2, 2016 at 6:41 am #1066378Bart
ParticipantHi, I’m talking about the one on top of the main calendar: http://www.wtnschp.be/events/
February 3, 2016 at 12:54 pm #1067231George
ParticipantFebruary 3, 2016 at 12:59 pm #1067235Bart
ParticipantYes, that’s the one. It’s in Dutch as WordPress is set to Dutch. (and at the moment, I have added your code to the functions.php file)
February 3, 2016 at 1:16 pm #1067243George
ParticipantThanks for confirming, @Bart! Sorry for the back-and-forth on this.
I’ve modified the original code snippet a bit and hope that this version helps!
add_filter( 'tribe_get_events_title', 'tribe_alter_upcoming_events_title' );function tribe_alter_upcoming_events_title() {
return 'Something Else';
}
Cheers!
GeorgeFebruary 22, 2016 at 8:35 am #1079883Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘How to change "Upcoming events" ?’ is closed to new replies.

