WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Month Name is Truncated - How to Fix? (10 posts)

  1. ctrujillo45
    Member
    Posted 2 years ago #

    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?

  2. agelonwl
    Member
    Posted 2 years ago #

    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 @ http://wp-events-plugin.com/documentation/using-template-files/

  3. agelonwl
    Member
    Posted 2 years ago #

    just change the date format in that file.

  4. customedia
    Member
    Posted 2 years ago #

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

  5. agelonwl
    Member
    Posted 2 years ago #

  6. tonyfleming
    Member
    Posted 2 years ago #

    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!

  7. agelonwl
    Member
    Posted 2 years ago #

    @ tonyfleming

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

  8. tonyfleming
    Member
    Posted 2 years ago #

    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>

  9. tommycopeland
    Member
    Posted 1 year ago #

    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!

  10. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic