Listing month rather than day in [tribe_events_list] icon

Home Forums Calendar Products Events Calendar PRO Listing month rather than day in [tribe_events_list] icon

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1000004
    Jon
    Participant

    Hi there! i was a bit put out to see that the icon for the [tribe_events_list] shortcode displays the day rather than the month. Huh! Well, I’d like to change that. I’m no expert at PHP, but if you pointed me the right direction, I bet I can replace one code with the other. Thanks!

    #1000054
    Brian
    Member

    Hi,

    Thanks for using our plugins I can help out here.

    To make this change you can follow our themer’s guide:

    https://theeventscalendar.com/knowledgebase/themers-guide/

    To move and edit this file in your child theme:

    events-calendar-pro\src\views\pro\widgets\modules\single-event.php

    Once there you want to replace this:

    <span
    class="list-dayname"><?php echo apply_filters( 'tribe-mini_helper_tribe_events_ajax_list_dayname', date_i18n( 'D', $postDate ), $postDate, $mini_cal_event_atts['class'] ); ?></span>

    with this

    <span
    class="list-dayname"><?php echo apply_filters( 'tribe-mini_helper_tribe_events_ajax_list_dayname', date_i18n( 'M', $postDate ), $postDate, $mini_cal_event_atts['class'] ); ?></span>

    That should do it.

    Let me know how that works out.

    Thanks

    #1004525
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Listing month rather than day in [tribe_events_list] icon’ is closed to new replies.