Why not show calendar title in archive.php
-
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
https://preview.ibb.co/m4mSTS/ss.jpgit’s not show everything
https://preview.ibb.co/jtNO2n/ss3.jpgThe page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Why not show calendar title in archive.php’ is closed to new replies.