Home › Forums › Welcome! › Pre-Sales Questions › Why not show calendar title in archive.php
- This topic has 2 replies, 2 voices, and was last updated 6 years ago by Support Droid.
-
AuthorPosts
-
March 7, 2018 at 12:44 am #1471862jiratGuest
i will add this code to functions.php
define('TRIBE_MODIFY_GLOBAL_TITLE', true);
add_filter('tribe_get_events_title', 'my_get_events_title');
function my_get_events_title($title) {
if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page
return 'Academic Calendar';
} elseif( tribe_is_month() && is_tax() ) { // Calendar Category Pages
return 'Academic Calendar' . ' » ' . single_term_title('', false);
} elseif( tribe_is_event() && !tribe_is_day() && !is_single() ) { // The Main Events List
return 'Events List';
} elseif( tribe_is_event() && is_single() ) { // Single Events
return get_the_title();
} elseif( tribe_is_day() ) { // Single Event Days
return 'Event On: ' . date('F j, Y', strtotime($wp_query->query_vars['eventDate']));
} elseif( tribe_is_venue() ) { // Single Venues
return $title;
} else {
return $title;
}
}and archive.php call function the_archive_title in picture
it’s not show everything
March 7, 2018 at 12:32 pm #1472603Jaime MarchwinskiKeymasterThanks so much for reaching out!
Do you have a license to one of our premium plugins? If so, please post this question on our premium forums.
Otherwise, please post your question in our WordPress.org forums.
Please also note that support for customizations is limited as stated in our support policy.
Thanks,
Jaime
March 29, 2018 at 9:35 am #1491886Support DroidKeymasterHey 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 ‘Why not show calendar title in archive.php’ is closed to new replies.