• Resolved ctrujillo45

    (@ctrujillo45)


    Hello-

    For the life of me, I cannot figure out how to have the Full Calendar Month names displayed as “AUGUST” as opposed to “AUG”. The same thing with the week names. I’ve looked in all of the files and even the database. Where would I modify this to have complete month and day names as opposed to abbreviated?

Viewing 9 replies - 1 through 9 (of 9 total)
  • hi,

    you can change it using the EM templates then look at the file calendar-full.php and you might also want to read the docs @ https://wp-events-plugin.com/documentation/using-template-files/

    just change the date format in that file.

    What do we do when we dont know wich format to input in date_i18n

    Thanks for this solution. I was able to change the month name, but cannot figure out where the change the day of the week from single-letter initial to either the 3-letter or full name form. They don’t appear to be set in that same file. Can you point me to the right place to fix those?

    Thanks!

    @ tonyfleming

    you can change that by editing the calendar templates at around line 23 wherein it was in an array form;

    Thank, agelonwl. I see that line of code, but don’t know php well enough to know what to replace there and with what. What should I replace the following with?

    <td><?php echo implode('</td><td>',$calendar['row_headers']); ?></td>

    I was looking for an answer, too for displaying the full month name instead of the truncated month name on the full calendar view. It’s very simple – just replace M….
    <td class="month_name" colspan="5"><?php echo ucfirst(date_i18n('M Y', $calendar['month_start'])); ?></td>
    with F!
    <td class="month_name" colspan="5"><?php echo ucfirst(date_i18n('F Y', $calendar['month_start'])); ?></td>
    That’s it!

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Just posted this on the pro forum, might as well share here ??

    one way would be to override your template in events-manager/templates/templates/calendar-full.php and replace line 26 with

    <td><?php echo implode('</td><td>',array('Monday','Tuesday','etc.')); ?></td>

    just make sure the first day in the array (atm Monday) is the first day of the week as per your blog settings.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Month Name is Truncated – How to Fix?’ is closed to new replies.