List Widget – Month Not Day

Home Forums Calendar Products Events Calendar PRO List Widget – Month Not Day

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1052743
    Greg
    Participant

    Hello,

    Been looking all over for this setting but can’t seem to find it (tried this Documentation: https://theeventscalendar.com/knowledgebase/configuring-the-list-widget/)

    How on earth do we change the 3 letter representation “Day” to a 3 letter representation of “Month” in the little calendar graphic?

    http://www.screencast.com/t/nIDQOb8iiuM

    Knowing the event is on AUG 18th is much more useful than knowing it’s on a FRI 18th… of some month.

    Thanks very much!
    Greg

    #1053192
    George
    Participant

    Hey @Greg,

    You should be able to pull this off by adding the following code snippet to your theme’s functions.php file:


    if ( function_exists( 'Tribe_ECP_Load' ) ) {
    /**
    * Change the list widget icons' day names to month names.
    *
    * @link http://theeventscalendar.com/?p=1052743
    */
    function tribe_support_1052743( $text, $postDate, $class ) {
    return date_i18n( 'M', $postDate );
    }
    add_filter( 'tribe-mini_helper_tribe_events_ajax_list_dayname', 'tribe_support_1052743', 10, 3 );
    }

    This works well for me on my own testing site and I hope it works well for you, too.

    Let me know!

    — George

    #1076633
    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 ‘List Widget – Month Not Day’ is closed to new replies.