How can I include the abbreviated month in the Event List Shortcode view?

Home Forums Calendar Products Events Calendar PRO How can I include the abbreviated month in the Event List Shortcode view?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1059362
    Robert Hickling
    Participant

    Hi there,
    Thanks for the great plugins. I’d really like to include the 3-letter abbreviated month in the thumbnail calendar graphics to the left of each event in the event list in the shortcode view. Having just the day and date is a bit confusing from a user point of view. I’d even prefer to include the 3-letter month instead of the 3-letter day if that’s what’s possible. I’ve included some screenshots to help clarify my needs. Thanks for the support!

    Current and Desired Displays
    http://173.254.111.227/ritesofpassagevisionquest/wp-content/uploads/2016/01/Screen-Shot-2016-01-20-at-10.12.00-AM.png

    Robert

    #1059643
    Cliff
    Member

    Hi Robert. Thanks for your question.

    Please look in this file: /wp-content/plugins/events-calendar-pro/src/views/pro/widgets/modules/single-event.php

    You may use the tribe-mini_helper_tribe_events_ajax_list_dayname filter to change “D” to “D M” (reference: http://php.net/manual/en/function.date.php)

    Or you may want to override this template in your own theme by creating a file at [your-child-theme]/tribe-events/pro/widgets/modules/single-event.php, according to our Themer’s Guide.

    I hope this information helps. Please let me know how it goes for you.

    #1060047
    Robert Hickling
    Participant

    That works splendidly. Thanks so much! I’m able to get the month and the date. I’m curious how I would create the Month and the Day name with a line break as in the mock? Right now they sit side by side if I put “D M”.

    #1060298
    Cliff
    Member

    If you give me a link, I may be able to help, but I’d imagine there’s some way to do it via CSS. This may help: http://stackoverflow.com/questions/4212909/can-css-force-a-line-break-after-each-word-in-an-element

    Let me know.

    #1078169
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘How can I include the abbreviated month in the Event List Shortcode view?’ is closed to new replies.