Home › Forums › Calendar Products › Events Calendar PRO › Change Upcoming Events to Upcoming Activities and Back to Events to Statewide Li
- This topic has 7 replies, 2 voices, and was last updated 10 years, 2 months ago by
Hunter.
-
AuthorPosts
-
February 22, 2016 at 2:59 pm #1080233
Susan Haebig
ParticipantOur site is not live yet for you to view.
I saw in a WP forum a similar question and a reply about adding a “snippet.” I am building our website with Divi (Elegant Themes). I see in the Divi Booster where I can add Custom CSS. Is this where would I add this? I am still learning.
Thank you for your help! SueFebruary 23, 2016 at 9:50 am #1080856Hunter
ModeratorHello Susan,
Thank you for posting.
PHP snippets are placed in your theme’s functions.php file. CSS snippets are typically placed in your theme’s style.css file.
I hope this information is helpful. Have a great week and thanks for choosing PRO!
February 23, 2016 at 12:08 pm #1080956Susan Haebig
ParticipantHi Hunter, I believe this snippet is for PHP? Is there one for CSS? Thank you, Sue
The snippet below will change the words ‘event’ and ‘events’ across your site. Copy and paste the snippet into your theme’s function.php file. Be sure the change the ‘Meeting’ and ‘Meetings’ to match the words you want to use instead.
add_filter( ‘tribe_event_label_singular’, ‘event_display_name’ );
function event_display_name() {
return ‘Meeting’;
}add_filter( ‘tribe_event_label_plural’, ‘event_display_name_plural’ );
function event_display_name_plural() {
return ‘Meetings’;
}
view raw
change the word event hosted with ❤ by GitHubFebruary 24, 2016 at 9:03 am #1081530Hunter
ModeratorWelcome back Sue,
You are correct – the snippet provided goes in your theme’s functions.php file. You shouldn’t need any CSS customizations 🙂
Let me know if this helps answer your question. Have a great day!
February 24, 2016 at 2:25 pm #1081714Susan Haebig
ParticipantHi Hunter, I am doing my homework because I am very new at this. I found where my theme’s functions.php file is and my child theme’s style sheet is. If I understand correctly, I would “copy” the PHP snippet from my theme’s function.php (if I ever find it); place it in my child theme’s style sheet and then make changes to the words there? Is this what you are saying? This is all very scary 🙂 Sue
February 26, 2016 at 7:52 am #1082423Hunter
ModeratorHi Sue,
You are spot on!
You can learn more about child themes on the WordPress.org site. About halfway down, the article goes into detail about the style.css and functions.php files. If you’re a visual learner, head on over to YouTube and check out some examples of creating child themes; LevelUp Tuts is one of my personal favorites 🙂
I hope this helps – have a great weekend!
February 26, 2016 at 10:49 am #1082612Susan Haebig
ParticipantThank you so much Hunter. I am a visual learner. How did you know 🙂
The Events Calendar Pro support is the best!
February 28, 2016 at 2:56 pm #1083121Hunter
ModeratorHey Susan,
I am also a visual learner. I think we have a sense about each other 😉
Glad to hear you’re on the right track and please feel free to open a new thread should you have any more questions.
Have a good remainder of your weekend and thank you for choosing PRO… our customers are the best!
-
AuthorPosts
- The topic ‘Change Upcoming Events to Upcoming Activities and Back to Events to Statewide Li’ is closed to new replies.
