Home › Forums › Calendar Products › Events Calendar PRO › Changing the word "EVENT" by two words doesn't work
- This topic has 2 replies, 3 voices, and was last updated 9 years, 11 months ago by
Support Droid.
-
AuthorPosts
-
May 12, 2016 at 4:50 pm #1114078
Michel
ParticipantHi,
I need to change the word “Event” by “Photo Workshop” and it simply doesn’t work.
I used the snippet you placed here and change the word “Meeting” by “Photo Workshop” and I get an error.Something doesn’t work with the two words and I had to remove the symbol ‘ each side of the word I choose temporarily, replacing “Event” by “Atelier”
I am sure there is a way to make it work but I am stuck, can’t do it by myself.
What would be the right way to write the code.
Here is the code I put in my functions.php file in my child theme:
// Singular
add_filter( ‘tribe_event_label_singular’, ‘event_display_name’ );
function event_display_name() {
return Atelier;
}
add_filter( ‘tribe_event_label_singular_lowercase’, ‘event_display_name_lowercase’ );
function event_display_name_lowercase() {
return atelier;
}// Plural
add_filter( ‘tribe_event_label_plural’, ‘event_display_name_plural’ );
function event_display_name_plural() {
return Ateliers;
}
add_filter( ‘tribe_event_label_plural_lowercase’, ‘event_display_name_plural_lowercase’ );
function event_display_name_plural_lowercase() {
return ateliers;
}Also, the text is not centred on the button ” AFFICHER LE ATELIERS”. How can I do it ?
Thank you very much for your helpMichel
May 13, 2016 at 12:29 pm #1114418Geoff
MemberHi Michel,
Sorry for the trouble with the snippet!
I just tried the same snippet that is here in our Knowledgebase and was able to change “Events” to “Photo Workshops” on my test site (screenshot) using this:
// Singular add_filter( 'tribe_event_label_singular', 'event_display_name' ); function event_display_name() { return 'Photo Workshop'; } add_filter( 'tribe_event_label_singular_lowercase', 'event_display_name_lowercase' ); function event_display_name_lowercase() { return 'Photo Workshop'; } // Plural add_filter( 'tribe_event_label_plural', 'event_display_name_plural' ); function event_display_name_plural() { return 'Photo Workshops'; } add_filter( 'tribe_event_label_plural_lowercase', 'event_display_name_plural_lowercase' ); function event_display_name_plural_lowercase() { return 'Photo Workshops'; }Hopefully that does the trick for you as well!
I tried looking for an example of the uncentered button but was unable to find one on the site. It will likely take a bit of CSS styling and, if you’re not sure which class name to use, this article will help you locate the correct one.
Will this help you get started? Please let me know. 🙂
Cheers,
GeoffMay 28, 2016 at 9:35 am #1120093Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Changing the word "EVENT" by two words doesn't work’ is closed to new replies.
