Remove suffix "th" after date format in the Week View widget.

Home Forums Calendar Products Events Calendar PRO Remove suffix "th" after date format in the Week View widget.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1069258
    davidbise
    Participant

    Hi,

    How to remove the suffix “th” after the date in the Week View widget?

    Thanks

    David

    #1069539
    George
    Participant

    Hey David,

    Thanks for reaching out. Do you mean the “Week View” on the main events page? As shown in this screenshot for example:

    If so, then head to Events > Settings > Display in your wp-admin and scroll down a bit to the section called “Date Format Settings.”

    You should find an option called “Week Day Format,” which looks like this:

    Remove the “S” so that instead of “D jS” it’s just “D j”, like this:

    That should remove the “th” and such in Week View:

    I hope this helps!
    George

    #1069555
    davidbise
    Participant

    Thank you very much it works!

    David

    #1069565
    davidbise
    Participant

    Sorry about that it works on the calendar like you mentioned in the exemple but it does works in the Week Widget.

    >>>
    Thanks.

    David

    #1069568
    davidbise
    Participant
    #1069895
    George
    Participant

    Hey David,

    Sorry I missed that detail! This unfortunately requires a bit of custom coding – you would have to paste a code snippet like this one into your theme’s functions.php file:

    add_filter( 'tribe_events_this_week_date_format', 'tribe_events_simplify_date_format' );

    function tribe_events_simplify_date_format() {
    return 'j';
    }

    That should do it!

    Cheers,
    George

    #1069955
    davidbise
    Participant

    Hi Georges,
    Thank You very much everything is working well!

    best regards,
    David

    #1070400
    George
    Participant

    Woot! Best of luck with your site, David.

    Cheers,
    George

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Remove suffix "th" after date format in the Week View widget.’ is closed to new replies.