• Resolved Bradley Allen

    (@bradley)


    Sugar Calendar Lite: 3.5.1

    Is there a way to remove the year from displaying in the list of upcoming events when using the Events List Block?

    Right now, the only way I see to remove the year is by changing the Date Format in the Settings > General tab. The problem with removing the year using Date Format is that the date will also be removed from old events on the Single Event view. This would be confusing because someone following a link to an old event could mistakenly believe that it was an upcoming event (since there would only be a month and day displayed).

    Overall, I like using Sugar Calendar and hope that it continues to be improved. There are a lot of areas where it can be improved, especially for “no code” customization. For example, I used CSS to change the font size, to hide the tiny calendar icon and to hide the default calendar on the Events Calendar Block (since I’m only using one calendar). I also used CSS to to make the images square in the Events List Block, however the image size being used wasn’t large enough (for my use case) and the images looked blurry. So instead I decided to use the Events Calendar Block on a single page. I’m using the Events List Block on a couple other pages.

    Thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Patrick

    (@paddyam)

    Hey @bradley,

    Thank you for reaching out and sharing your feedback. We truly appreciate your input, as it plays a crucial role in our ongoing efforts to enhance the plugin experience.

    Regarding the option to adjust the date format on the event list block, I checked with the dev team, and they confirmed that this is currently not possible. However, they’re working on including an option to modify this in the next release.

    Once updated, you will be able to modify this through the?sugar_calendar_block_event_list_body_date_format?filter, and you can remove the year from the date as follows.

    function sc_change_event_block_date_format( $date_format ) {

    return 'F j';
    }
    add_filter( 'sugar_calendar_block_event_list_body_date_format', 'sc_change_event_block_date_format' );

    We do not have a specific confirmation on when the release will be out, but this should be available in the coming weeks.

    Thanks once again.

    • This reply was modified 2 weeks ago by Patrick.
    Thread Starter Bradley Allen

    (@bradley)

    That’s great Patrick! Thank you all very much for being so responsive. I really appreciate it!

    Plugin Support Patrick

    (@paddyam)

    Hey @bradley,

    I wanted to touch base and let you know that version 3.6 of Sugar Calendar, which includes the shared filter, is now available. This should allow you to adjust the date and time format as shared through the sugar_calendar_block_event_list_body_date_format (https://a.supportally.com/i/0Qqjlk) and sugar_calendar_block_event_list_body_time_format (https://a.supportally.com/i/uaUykY) filters as in the shared example.

    Kind regards

    Thread Starter Bradley Allen

    (@bradley)

    I confirm that this worked on my site. Thank you very much! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.