Calendar Widget – change month format

Home Forums Calendar Products Events Calendar PRO Calendar Widget – change month format

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #20835
    Anderson
    Participant

    Greetings — Currently my calendar widget displays month as “M” format – June is “Jun”. I would like month names to be in “F” format as “June”. I have copied “table-mini.php” into my theme’s “events” directory but when I go to line 24 and change the ‘M’ to ‘F’ in monthsShort[date('M',$date)]; echo date(' Y',$date); ?> the month name disappears entirely. How can I change this?

    Also, a recent topic discussed the issue of navigating between months. It was mentioned that this would be addressed in an upcoming release. Will this capability be available this summer? Thanks
    https://theeventscalendar.com/support/forums/topic/calendar-widget-switch-month/#post-18424

    #20885
    Joyce Grace
    Member

    Hello Krysia, I have asked Jonah to look at this for you. However, another user had the same question, and he was able to get it working, would this help? https://theeventscalendar.com/support/forums/topic/using-full-month-name-for-title-on-table-mini-php/

    #20894
    Anderson
    Participant

    Yes, that topic had the answer, which is that not only do you have to change ‘M’ to ‘F’ but you also have to change ‘monthsShort’ to ‘monthsFull’. Below is the complete code (line 24 in “table.mini.php”, copied from the original into your theme “events” directory.

    monthsFull[date('F',$date)]; echo date(' Y',$date); ?>

    #20944
    Joyce Grace
    Member

    Hi Krysia, this is out of my range of expertise, but let’s see what Jonah has to say about it. Sorry you’re having this issue.

    #20985
    Jonah
    Participant

    Hi Krysia,

    Try changing this to:

    echo $tribe_ecp->monthsFull[date('F',$date)];

    …in your modified copy of table-mini.php

    I hope that helps,
    – Jonah

    #977157
    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Calendar Widget – change month format’ is closed to new replies.