How to change "Upcoming events" ?

Home Forums Calendar Products Events Calendar PRO How to change "Upcoming events" ?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1065496
    Bart
    Participant

    How can I change the title on the main calendar? I don’t see any way to easily change the title. Currently it says “Upcoming events” and we would like to alter this.

    #1065820
    George
    Participant

    Hi @Bart,

    At this time you can only change this with some custom coding.

    For example, if you wanted to use “Our Classes” instead of “Upcoming Events”, you would add code like the following to your theme’s functions.php file:


    add_filter( 'tribe_events_title', 'tribe_change_upcoming_events_text' );

    function tribe_change_upcoming_events_text( $title ) {
    return 'Our Classes';
    }

    I hope this helps – cheers! 😀

    — George

    #1065852
    Bart
    Participant

    Unfortunately this does not? Maybe it does not work because the site is non-English?

    #1066377
    George
    Participant

    I’m sorry about that, @Bart. We might be referring to different instances of the phrase “Upcoming Events”, of which there are many instances throughout our plugin….

    So to help ensure we’re referring to the same exact string, can you take a screenshot of the exact “Upcoming Events” phrase on your site that you’re referring to? You can then share image here by uploading the screenshot to Imgur.com, Flickr.com, CloudUp.com, or any similar image-hosting site; then just share the links to those images here and I’ll take a look.

    Thank you!
    George

    #1066378
    Bart
    Participant

    Hi, I’m talking about the one on top of the main calendar: http://www.wtnschp.be/events/

    #1067231
    George
    Participant

    Thanks @Bart! To be 100% clear, do you mean the text that I’m pointing out with a red arrow in this screenshot:

    Thank you,
    George

    #1067235
    Bart
    Participant

    Yes, that’s the one. It’s in Dutch as WordPress is set to Dutch. (and at the moment, I have added your code to the functions.php file)

    #1067243
    George
    Participant

    Thanks for confirming, @Bart! Sorry for the back-and-forth on this.

    I’ve modified the original code snippet a bit and hope that this version helps!


    add_filter( 'tribe_get_events_title', 'tribe_alter_upcoming_events_title' );

    function tribe_alter_upcoming_events_title() {
    return 'Something Else';
    }

    Cheers!
    George

    #1079883
    Support Droid
    Keymaster

    This 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.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘How to change "Upcoming events" ?’ is closed to new replies.