Change Title of Event Archives page

Home Forums Calendar Products Events Calendar PRO Change Title of Event Archives page

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1274069
    Gretel
    Participant

    Hello, I have tried everyhting i’ve read in the forums to change the events archive page title but it hasn’t worked. Currently, the page says “Tribe Events”. I added this code which I found in your forum to the functions.php of my theme but it did not work:

    add_filter(‘tribe_ce_event_list_page_title’, ‘change_the_title’);
    function change_the_title() {
    return ‘Your New Title Goes Here’;
    }

    My theme developer said to reach out to you since they could not figure it out. They did have to make some adjustments to hide past events and display future events in the correct order so it may have created a conflict. We just can’t figure it out.

    Thanks in advance.

    • This topic was modified 6 years, 12 months ago by Gretel. Reason: more info provided
    #1274451
    Geoff B.
    Member

    Good evening Gretel and welcome back!

    Thank you for reaching out to us.
    I would love to help you with this topic.

    I believe you will all that you are looking for here: https://theeventscalendar.com/knowledgebase/altering-or-removing-titles-on-calendar-views/

    Let me know if that helps.

    Have a great day!

    Geoff B.

    #1274650
    Gretel
    Participant

    Hi Geoff, unfortunately, that’s not the area I want to change. See the
    screenshot below. That’s the page title of the archives I believe. I’ve
    tried everything I have found. I need help. Thank you.

    [image: Inline image 1]

    > Geoff B. wrote:
    >
    > Good evening Gretel and welcome back!
    >
    > Thank you for reaching out to us.
    > I would love to help you with this topic.
    >
    > I believe you will all that you are looking for here: https://
    > theeventscalendar.com/knowledgebase/altering-or-
    > removing-titles-on-calendar-views/
    >
    > Let me know if that helps.
    >
    > Have a great day!
    >
    > Geoff B.
    >
    > Post Link: https://theeventscalendar.com/support/forums/topic/change-
    > title-of-event-archives-page/#post-1274451
    >
    > ———–
    >
    > Please share images through Dropbox or a similar service
    > when replying by email.
    >
    > You are receiving this email because you subscribed to the
    > forum topic on TheEventsCalendar.com. thread on the website.
    >
    > Please keep the reference number in the subject when replying and
    > make sure the reply is addressed to [email protected]
    >
    > Login and visit the topic to unsubscribe from these emails.
    >

    #1274654
    Gretel
    Participant

    Hi Geoff, unfortunately, that’s not the area I want to change. Please see the screenshot attached. That’s the page title of the archives I believe. I’ve tried everything I have found. I need help. Thank you.

    #1274972
    Geoff B.
    Member

    Good evening Gretel,

    Thank you for writing back.

    I am sure we can help out, alas the screenshot did not make it somehow 🙁

    Could you please share it again using a Dropbox or Google Drive link ?
    This way I will be able to make sure I point you in the right direction.

    Best regards,

    Geoff B.

    #1275174
    Gretel
    Participant
    #1275596
    Geoff B.
    Member

    Good evening Gretel,

    Thank you for the screenshot link.
    The “Tribe Events” title appears to be generated by your WordPress theme.

    There are a couple of ways of tackling this:

    1. Try different settings for Events Template under Events -> Settings -> Display. Sometimes, that works.
    2. Tweak your archive.php file (or page-title.php) file to return a chosen title when Tribe Archive pages are displayed.

    Could you please send me a copy of the latest version of your WordPress theme / child theme via a link to a .zip file link (stored Dropbox or Google Drive) so that I can run some tests on my end ? I recommend a private reply for that purpose.

    Please ensure you are using the latest files as found on your actual website.
    This way I will get access to any updates or customizations you might have made.

    Hang in there!

    Geoff B.

    #1275783
    Gretel
    Participant

    This reply is private.

    #1276064
    Geoff B.
    Member

    This reply is private.

    #1281814
    Gretel
    Participant

    Hi Geoff. Thanks but that’s a bit confusing. Is this the code that you are referring to?

    if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page
    echo ‘Events Calendar’;
    } elseif( tribe_is_month() && is_tax() ) { // Calendar Category Pages
    echo ‘Events Calendar’ . ‘ » ‘ . single_term_title(”, false);
    } elseif( tribe_is_event() && !tribe_is_day() && !is_single() ) { // The Main Events List
    echo ‘Events List’;
    } elseif( tribe_is_event() && is_single() ) { // Single Events
    echo get_the_title();
    } elseif( tribe_is_day() ) { // Single Event Days
    echo ‘Events on: ‘ . date(‘F j, Y’, strtotime($wp_query->query_vars[‘eventDate’]));
    } elseif( tribe_is_venue() ) { // Single Venues
    echo get_the_title();
    } else {
    echo get_the_title();
    }

    ////////And then change the last line so it looks like this?////////////It breaks my site because and asks to save the doc as UTF-8 or something.//////////////

    if( tribe_is_month() && !is_tax() ) { // The Main Calendar Page
    echo ‘Events Calendar’;
    } elseif( tribe_is_month() && is_tax() ) { // Calendar Category Pages
    echo ‘Events Calendar’ . ‘ » ‘ . single_term_title(”, false);
    } elseif( tribe_is_event() && !tribe_is_day() && !is_single() ) { // The Main Events List
    echo ‘Events List’;
    } elseif( tribe_is_event() && is_single() ) { // Single Events
    echo get_the_title();
    } elseif( tribe_is_day() ) { // Single Event Days
    echo ‘Events on: ‘ . date(‘F j, Y’, strtotime($wp_query->query_vars[‘eventDate’]));
    } elseif( tribe_is_venue() ) { // Single Venues
    echo get_the_title();
    } else {
    (<code class=”php functions”>echo <code class=”php plain”>get_the_title();) by echo strip_tags(axiom_get_blog_title());
    }

    #1282695
    Geoff B.
    Member

    Good evening Gretel,

    Sorry for the confusion.

    Simply place the following file in your child theme (and while you are it, you can take a look at what I meant): header

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1282952
    Gretel
    Participant

    Hi Geoff and thanks. That worked perfectly. I’ll refer to this in the future.

    #1283143
    Geoff B.
    Member

    Good afternoon Gretel,

    I am super stoked that this worked for you.

    You are welcome back in our support forums any time 🙂

    For now, I am going to close this thread.

    Have a great weekend!

    Geoff B.

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Change Title of Event Archives page’ is closed to new replies.