• Resolved jiratt

    (@jiratt)


    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.jpg

    it’s not show everything
    https://preview.ibb.co/jtNO2n/ss3.jpg

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • GeoffBel

    (@geoffbel)

    Hey @jiratt,

    Thank you for your interest in our products.

    Just to set expectations, the scope of our support is mostly to get our customers started on the right track and to help them in case of issues. We unfortunately do not provide complete support for customization.

    With that in mind, you are more than welcome to browse our knowledge base and premium forums: https://theeventscalendar.com/customizations/

    Best regards,

    Geoff B.

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help. ??

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Why not show calendar title in archive.php’ is closed to new replies.