Change Upcoming Events to Upcoming Activities and Back to Events to Statewide Li

Home Forums Calendar Products Events Calendar PRO Change Upcoming Events to Upcoming Activities and Back to Events to Statewide Li

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1080233
    Susan Haebig
    Participant

    Our 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! Sue

    #1080856
    Hunter
    Moderator

    Hello 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!

    #1080956
    Susan Haebig
    Participant

    Hi 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 GitHub

    #1081530
    Hunter
    Moderator

    Welcome 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!

    #1081714
    Susan Haebig
    Participant

    Hi 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

    #1082423
    Hunter
    Moderator

    Hi 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!

    #1082612
    Susan Haebig
    Participant

    Thank you so much Hunter. I am a visual learner. How did you know 🙂

    The Events Calendar Pro support is the best!

    #1083121
    Hunter
    Moderator

    Hey 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!

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Change Upcoming Events to Upcoming Activities and Back to Events to Statewide Li’ is closed to new replies.