Change title on top of calendar.

Home Forums Calendar Products Events Calendar PRO Change title on top of calendar.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1211133
    Matias
    Participant

    Hi. I need to change the title on top of the calendar. Instead of “Eventos para…”, I need for it just to be the month (capitalized) and year.

    #1211153
    Nico
    Member

    Hola Matias, como estas?

    Gracias por ponerte en contacto con nosotros! Me tome la libertad de contestarte en español ya que la evidencia indica que este es tu idioma nativo 😉

    Con respecto a tu consulta, esto puede lograrse filtrando el titulo con el siguiente snippet:

    /* Tribe, change month view title to be Month + Year */
    function tribe_custom_title ( $title ) {

    if ( !tribe_is_month() ) return $title;

    return ucfirst( date_i18n( tribe_get_date_option( 'monthAndYearFormat', 'F Y' ), strtotime( tribe_get_month_view_date() ) ) );
    }

    add_filter ( 'tribe_get_events_title', 'tribe_custom_title' );

    Agrega este código al archivo functions.php en tu theme (o child-theme) y debería cambiar el formato del titulo.

    Saludos, espero tu confirmación sobre la solución propuesta,
    Nico

    #1220972
    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 ‘Change title on top of calendar.’ is closed to new replies.