Solo mostrar hora de eventos en el widget lista de eventos

Home Forums Calendar Products Events Calendar PRO Solo mostrar hora de eventos en el widget lista de eventos

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1145647
    Juan Morales
    Participant

    Hola en el widget Lista de Eventos, el listado aparece de esta forma
    Agosto 11 @ 9:40 am – 3:15 pm. Solo quiero que me muestre la hora y no el dia como esto @9:40 am – 3:15 pm.

    Saludos

    #1146138
    Nico
    Member

    Hola Juan, como estas?

    Bienvenido a nuestro foro de soporte!

    Para modificar el display de la fecha en el widget deberás crear un template override (ver más en themer’s guide) del archivo wp-content/plugins/events-calendar-pro/src/views/pro/widgets/modules/single-event.php y modificar la linea 52 donde la fecha es impresa:

    // original
    <?php echo tribe_events_event_schedule_details(); ?>
    // modificar por
    <?php echo tribe_get_start_date( null, false, get_option( 'time_format' ) ) . tribe_get_option( 'timeRangeSeparator', ' - ' ) . tribe_get_end_date( null, false, get_option( 'time_format' ) ); ?>

    Eso imprimirá la hora de comienzo y finalización del evento, de forma básica. Si quieres contemplar otras situaciones mas complejas deberías revisar el código de la función tribe_events_event_schedule_details en wp-content/plugins/the-events-calendar/scr/Tribe/functions/template-tags/general.php linea 907.

    Espero esto sirva de ayuda!

    Saludos,
    Nico

    #1154852
    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 ‘Solo mostrar hora de eventos en el widget lista de eventos’ is closed to new replies.