Renaming the calendar to something other than “Calendar of Events” (2.x Builds Only)

Published on: May 29, 2012 |Tags: | Categories: Tutorial

Note: this tutorial applies to 2.x  builds only. Do not use this for version 3.0 or above.

This is relatively easy to do. And what’s better is that this doesn’t require you to modify the translation files in any way. Just open the site’s functions.php file in your favorite text editor and drop in this code:

add_filter('tribe_get_events_title', 'my_get_events_title');
function my_get_events_title($title){
if( is_tax() ){
return $title;
}else{
return 'My Title';
}
}

Replace “My Title” with whatever you want the title of the calendar to be and you should be all set. Note that this is just for changing the title – if you want the site translated to a different language, see our separate FAQ entry.

If this technique doesn’t work for you, you can also try this one: Change Events Calendar Strings Without Editing Language Files

Tags: |