Home › Forums › Calendar Products › Events Calendar PRO › Page Title Displaying Event Title Issue
- This topic has 7 replies, 2 voices, and was last updated 8 years, 7 months ago by
Tina.
-
AuthorPosts
-
September 17, 2017 at 5:33 pm #1350497
Tina
ParticipantHello there,
I installed Events Calendar Pro on my client’s website to display the various classes they offer in calendar format. Everything seems to be working well except for one thing: In the Events Archives page (main calendar), the title fetched is not Events or Calendar or even Archives, but instead the name of an upcoming event. I’m attaching an image as reference.
I looked at your support pages but the solutions proposed did not work to solve the issue. I’m currently using Default Events Template but even if I change it to Default Pages Template, the issue persists. Furthermore, the “add_filter(‘tribe_get_events_title’, ‘my_get_events_title’);” and other instructions found on this page do not solve the issue either.
It would be nice if the title to appear would be the same as the one in the title bar. How can I solve this issue?
Thank you,
TinaSeptember 18, 2017 at 3:14 pm #1350886Patricia
MemberHey Tina,
Thank you for reaching out to us! You can hide this specific title from your month view calendar with a template override. Please access your server via FTP and copy the following file:
wp-content/plugins/the-events-calendar/src/views/month.php
Paste it into:
wp-content/themes/[your-theme]/tribe-events/month.php and add the following code:
if( tribe_is_month() && !is_tax() ) { ?> <style type="text/css">#title { display: none !important; }</style> <?php }If you want to change this title to something else like Events, you can do this via CSS as well by adding the following code in this same file:
#title:after { content: "Your Text!" !important; }I hope this helps!
Let me know if you need anything else in the mean time and I’ll be happy to assist!
Best regards,
Patricia
September 18, 2017 at 4:06 pm #1350899Tina
ParticipantHello Patricia, thank you for your response! With the code provided I was able to use display:none; to hide the title. That being said, it would seem that the second set of instructions does not work. I pasted it in the same file, right below the previous instruction. Strangely, it doesn’t even seem to appear in the CSS when I inspect it, but the display: none; does.
You can see the hidden title here: https://cyberdefenses.com/calendar/
Do you have any suggestion as to what I should try to add a title?
Thank you,
Tina-
This reply was modified 8 years, 7 months ago by
Tina.
September 19, 2017 at 7:12 am #1351095Patricia
MemberHi Tina,
Can you please try to use this code instead?
if( tribe_is_month() && !is_tax() ) { ?> <style type="text/css">#title { visibility: hidden; } #title:after { content: "Your Text!" !important; visibility: visible; display: block; } </style> <?php }I just added this code to my own testing site and the title was successfully changed.
I hope this helps!
Let me know if you need anything else in the mean time!
Best regards,
Patricia
September 20, 2017 at 12:01 am #1351703Tina
ParticipantHello Patricia,
Thanks for the reply! This actually works perfectly. There’s just one issue:
It only works when the code snippet is posted in the original month.php file location, but does nothing if I add it here as you suggested: wp-content/themes/[your-theme]/tribe-events/month.php
Does that mean that every time the plugin updates my code will be overwritten? I just want to make sure I don’t lose the changes. Do you know if there’s another spot where I should put the code instead?
Thanks,
TinaSeptember 20, 2017 at 8:02 pm #1352383Patricia
MemberHi Tina!
I’ve implemented this same code in my theme and it is working as expected. Can you please make sure that you are implementing the template override correctly?
As I can see from here your theme directory is unicon-child, so the right place to put the month.php file is: wp-content/themes/unicon-child/tribe-events/month.php
Inside the month.php file, please make sure that you are including the following:
https://gist.github.com/nefeline/8f962f0b1ad8e6fa1d1fb7e14cf5b84d
I hope this helps! If this info didn’t help you to solve your problem, please send me your parent and child theme directories in a private reply so I can further investigate your case.
Thanks!
Patricia
October 12, 2017 at 9:35 am #1362756Support Droid
KeymasterHey 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 -
This reply was modified 8 years, 7 months ago by
-
AuthorPosts
- The topic ‘Page Title Displaying Event Title Issue’ is closed to new replies.
