How change the

Home Forums Calendar Products Events Calendar PRO How change the

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1612865
    pieryv
    Participant

    Hello,
    I don’t see how I can change the:

    Events for September 2018 </ h1> in the view month?
    I would have simply wished, in the example above to have: “September 2018” and not to have this “Events for” just before.
    Thanking you in advance for your help.
    Pierre-Yves

    #1614395
    Sky
    Keymaster

    Hi there,

    Thanks for reaching out. I’d be happy to help with your question.

    This possible with a bit of customization. You can add the following snippet to your functions.php file or in a functionality plugin:


    /**
    * Add a Custom Event Title to Month View
    */
    add_filter('tribe_get_events_title', 'my_tribe_get_events_title', 100);
    function my_tribe_get_events_title( $title ) {
    if ( ! $wp_query = tribe_get_global_query_object() ) {
    return;
    }
    if ( tribe_is_month() ) {
    $title = date_i18n( tribe_get_date_option( 'monthAndYearFormat', 'F Y' ), strtotime( tribe_get_month_view_date() ) );
    }
    return $title;
    }

    This will only affect the month view. If you wanted to change the output for other views, you could add that to this function.

    Hope that helps! Please let me know if you have any additional questions about this.

    Thanks,
    Sky

    #1632293
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How change the’ is closed to new replies.