Home › Forums › Calendar Products › Events Calendar PRO › Hide "Events for" and change link
- This topic has 17 replies, 2 voices, and was last updated 6 years, 1 month ago by Josep.
-
AuthorPosts
-
January 15, 2018 at 10:03 am #1426648JosepParticipant
HI!
In page:
http://infoactivat.com/prats/agenda/I need to hide “esdeveniments(events) for” and “> Agenda”
And is it possible to disable link? My primary events page is http://infoactivat.com/prats/agenda/ instead of http://infoactivat.com/prats/agenda-tota
Thanks!
January 15, 2018 at 11:53 pm #1427296JenniferKeymasterHi Josep!
I took a look at the link you sent, but I was not able to access the site.
However, you can remove the title by customizing the template for the view that you want to remove it from. Our themer’s guide (here) has instructions on customizing templates. If you would rather change it, this article has some instructions on doing so.
We are a bit limited in the amount of support that we can provide for customizations, but if you get stuck or have any questions, please let me know – I’ll be happy to point you in the right direction!
Regarding the link, I’m not quite sure what you are looking to do here…can you please clarify a little bit? If you are able to temporarily remove the restrictions on the site so that I can access the pages, that would help me understand what is going wrong.
Thanks,
Jennifer
January 16, 2018 at 1:44 am #1427340JosepParticipantHi!
Sorry! Now you can access to the site (it was in maintenance mode).January 16, 2018 at 5:01 pm #1428136JenniferKeymasterHi Josep,
Thanks for opening the site up! I am able to access it now. Did you have any luck removing the title in the templates? I see that month view is your default view, so you can remove the title by editing the template found at wp-content/plugins/the-events-calendar/src/views/month/content.php. Our themer’s guide has instructions on how to copy the template files into your child theme for editing. The line you’ll want to remove is:
If you just want to change the link for your main events page, you can do this by going to Events > Settings > General > Events URL slug and change it there (see screenshot).
Let me know how this goes!
Thanks,
Jennifer
January 22, 2018 at 8:09 am #1432388JosepParticipantHi!
But I only need to remove “Events for”! I need “MONTH” and “YEAR”Is it possible?
Thanks!
January 23, 2018 at 6:21 pm #1434229JenniferKeymasterHi Josep,
Thanks for clarifying! You can change the title for any of the views with the snippet in this article. Can you give this a try and let me know if this works for you?
Thanks,
Jennifer
January 23, 2018 at 10:30 pm #1434338JosepParticipantHi!
I change the name in
$title_month = ‘%1$s’; // Month View, %1$s = the name of the month
(only need the name of the month and the year)You can see here:
the problem is the date format:
I need: month year
instead of: month \24\UTC year > Agenda (and disable link)How can I do that?
Thank you very much!
January 30, 2018 at 9:01 am #1439846JosepParticipantHi!
How can I remove \24\UTC in month view title?
https://pratsdellucanes.cat/agenda/Thanks!
February 8, 2018 at 8:55 am #1447906JosepParticipantPlease, help!
February 8, 2018 at 9:33 am #1447963JenniferKeymasterHi Josep,
I’m sorry for the delayed response here! We’ve had a much higher than normal volume of threads this week, and it looks like this one slipped through the cracks. So sorry about that!
It looks like you have your “Month and year format” setting under Events > Settings > Display, which controls the date format for month view, set to “F \d\e Y”. Can you try changing it to “F Y” (see screenshot) and see if that fixes it?
Thanks,
Jennifer
February 8, 2018 at 9:45 am #1447971JosepParticipantYes! It works!
And the last question about this page…
How can I remove the link in title? And “> Agenda”?Thanks!
February 8, 2018 at 10:51 am #1448036JenniferKeymasterGreat!
Try adding this to the functions.php file of your child theme:
function tribe_change_month_cat_title( $title ) {
$depth = false;
$title = tribe_get_events_title( $depth );
return $title;
}
add_filter( 'tribe_events_title', 'tribe_change_month_cat_title' );February 8, 2018 at 9:59 pm #1448578February 8, 2018 at 11:35 pm #1448608JenniferKeymasterHi Josep,
Can you try clearing out your cache within WP Super Cache to make sure that you’re seeing the latest version of the page?
February 9, 2018 at 2:43 am #1448689JosepParticipantYes, I’ve delete all cache from WP Fastest Cache plugin, and title link still appears.
Thanks!
-
AuthorPosts
- The topic ‘Hide "Events for" and change link’ is closed to new replies.