Home › Forums › Calendar Products › Events Calendar PRO › Change Title of Event Archives page
- This topic has 13 replies, 2 voices, and was last updated 6 years, 11 months ago by Gretel.
-
AuthorPosts
-
April 25, 2017 at 8:03 am #1274069GretelParticipant
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
April 25, 2017 at 7:11 pm #1274451Geoff B.MemberGood 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.
April 26, 2017 at 7:13 am #1274650GretelParticipantHi 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.
>April 26, 2017 at 7:13 am #1274654GretelParticipantHi 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.
April 26, 2017 at 3:02 pm #1274972Geoff B.MemberGood 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.
April 27, 2017 at 7:15 am #1275174GretelParticipantHi, sure. Here is a Dropbox link: https://www.dropbox.com/s/nrcexo0iox4poa9/Screenshot%202015-06-07%2020.19.04.png?dl=0
April 27, 2017 at 9:34 pm #1275596Geoff B.MemberGood 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:
- Try different settings for Events Template under Events -> Settings -> Display. Sometimes, that works.
- 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.
April 28, 2017 at 7:24 am #1275783GretelParticipantThis reply is private.
April 28, 2017 at 2:20 pm #1276064Geoff B.MemberThis reply is private.
May 10, 2017 at 9:51 am #1281814GretelParticipantHi 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());
}May 11, 2017 at 6:57 pm #1282695Geoff B.MemberGood 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.May 12, 2017 at 7:24 am #1282952GretelParticipantHi Geoff and thanks. That worked perfectly. I’ll refer to this in the future.
May 12, 2017 at 9:39 am #1283143Geoff B.MemberGood 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.
-
AuthorPosts
- The topic ‘Change Title of Event Archives page’ is closed to new replies.