Why not show calendar title in archive.php

Home Forums Welcome! Pre-Sales Questions Why not show calendar title in archive.php

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1471862
    jirat
    Guest

    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
    archive.php

    it’s not show everything
    result

    #1472603

    Thanks 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

    #1491886
    Support Droid
    Keymaster

    Hey 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

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