Home › Forums › Calendar Products › Events Calendar PRO › "Calendar Of Events" title change
- This topic has 49 replies, 5 voices, and was last updated 14 years, 1 month ago by
Jonah.
-
AuthorPosts
-
March 3, 2012 at 4:29 am #16178
Peter
MemberThere is no the_title() function in the page.php file.
The theme I am using is called Karma from TrueThemes: http://themeforest.net/item/karma-clean-and-modern-wordpress-theme/168737
I will try to look for the_title() function.
March 5, 2012 at 7:50 am #16201Rob
MemberThanks Peter. If you’re able to dig that up within your theme and are still having problems from there, please let us know what else we can do.
March 8, 2012 at 3:04 pm #16483Lynn
ParticipantIn the FAQ, you recommend just deleting the header on the calendar page to remove instead of change the “Calendar of Events” text. here:
———
Can I remove the “Calendar of Events” heading on the events list page?You can. The best and easiest way at this point is to do so using CSS, by using display:none. That’ll at first, get rid of ALL page headings. But you can specifically target the title only on certain pages (like the Events page) by using this code:
.tribe_events .entry-header {
display: none;
}
That will remove the calendar header but keep the headings for individual events.
——-That doesn’t work, in the events.css file, or a custom.css file of my theme. Could you be more specific about implementing this code? I was hoping it would, then I make a workaround by adding an H2 tag with the text I do want, in the spot on the Calendar settings page for HTML above the listings.
And, now in this thread you’re suggesting that we change the English translation. I’m not seeing any confirmation in this thread that that works either.
Sorry to be so abrupt; I’m frustrated that I’ve spent 2 hours trying to change one stupid thing on this calendar.
March 9, 2012 at 10:30 am #16510Rob
MemberHi Lynn. Sorry to hear of your frustration. I know how it feels to spend 2 hours on an issue only to get nowhere as a result of it. I apologize on behalf of the team for the inconvenience you’ve faced so far.
When this discussion with Peter over the translations first began back in November, the 2.0 release had just launched and the solution proposed was the only method viable. The “change translation files” method has been rendered obsolete since the 2.0.4 launch a couple weeks back. To change the title just add this to your functions.php file:
add_filter('tribe_get_events_title', 'my_get_events_title');
function my_get_events_title($title){
if( is_tax() ){
return $title;
}else{
return 'My Title';
}
}That should allow you to make the change and I’ve just tested it to confirm as much myself. Please let me know if you have any other questions or problems there.
As for why the other route (removing the title, rather than just altering it) from the FAQ isn’t working…that’s a good question. It was when we initially added that during the 2.0.2 lifecycle, but I’m not able to recreate it as of 2.0.4. Let me get our dev Jonah to comment on that point.
March 9, 2012 at 12:25 pm #16536Lynn
ParticipantThank you, Rob! Yes, that worked. I put it in my custom_functions.php file of my theme. I know you can’t update all parts of the plugin and the help all at the same time, and I appreciate that you all are keeping up with your forum to help!
March 9, 2012 at 1:02 pm #16540Jonah
ParticipantHi Lynn, the display: none code in the FAQ does not work anymore because we don’t use that class name (.entry-header) for the title anymore. We’re making some changes to the FAQ’s in the next few days so I’ll make sure to get this cleared up. I hope that answers your question but let me know if you have any others.
Regards,
JonahMarch 9, 2012 at 2:02 pm #16550Lynn
ParticipantYes, another question:
Can I, in a similar way that we changed the events page title above, change the display word “Venue” to something else more appropriate for my client’s use? Seems like this may help other people, too, to be able to use the expanded functionality you’ve built into the “Venue” idea, but just re-label it, to say “Room” or “Location” or “Arena” or “Region” or whatever one may need.March 12, 2012 at 8:09 pm #16638Jonah
ParticipantHi Lynn, the easiest way to do that is to edit the english translation files, creating your own copy. I would suggest you checkout this FAQ item for a how to on that: https://theeventscalendar.com/?qa_faqs=can-i-change-the-language-that-the-content-of-my-calendar-appears-in-on-the-site
March 13, 2012 at 5:24 am #16658Peter
MemberRob, Is this the code I should be using in the function.php file then?
add_filter('tribe_get_events_title', 'my_get_events_title');function my_get_events_title($title){
if( is_tax() ){
return $title;
}else{
return 'My Title';
}
}
March 13, 2012 at 10:14 am #16667Rob
MemberHey Peter! Yup, if I understand the request correctly, you should be able to accomplish it with the code I noted in this comment: https://theeventscalendar.com/support/forums/topic/calendar-of-events-title-change/page/3/#post-16510. Let us know if that doesn’t do the trick though.
March 13, 2012 at 2:03 pm #16688Peter
MemberThanks. I will test it later this week.
If I would like to avoid editing the themes function.php, is there anyway I am able to make my own custom function file?
That way I won’t loose my changes when I update the theme.
March 13, 2012 at 4:23 pm #16699Rob
MemberHey Peter. Let me get Jonah to respond on that last question; I don’t believe so but he can confirm.
March 13, 2012 at 6:00 pm #16705Jonah
ParticipantHi Peter, not really. You can include custom PHP files in functions.php but you still need to edit functions.php to include the include 🙂 I usually include files in functions.php like so:
require_once('library/sidebar.php');
And the directory you put files in and the name of the include can be anything you want.
March 14, 2012 at 12:47 am #16716Peter
MemberHi Jonah,
When I add the following code to function.php my entire site goes blank.
require_once('library/sidebar.php');How can that be?
March 16, 2012 at 10:46 am #16854Jonah
ParticipantHi Peter, is it wrapped in PHP tags?
-
AuthorPosts
- The topic ‘"Calendar Of Events" title change’ is closed to new replies.
