Support » Plugin: Events Manager » [Plugin: Events Manager] change d to D

  • Resolved Lee Rickler

    (@bigbadboy)


    For the life of me I cannot find how to do this:
    When displaying a calendar the days are listed as:
    M – T – W – T – F – S – S

    In need to change these to show as:
    Mon – Tue – Wed – Thur – Fri – Sat – Sun

    Essentially all I need to do is change d to D … but I simply cannot find where to do it!

    TIA

    http://wordpress.org/extend/plugins/events-manager/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Marcus

    (@netweblogic)

    NetWebLogic Support

    What you can do is edit the calendar templates as instructed here:
    http://wp-events-plugin.com/documentation/using-template-files/

    the file you want is calendar-small.php

    I understand that, and have edited many of the files, but I simply cannot find where to change the day format.
    Seriously, I’ve looked everywhere!

    The code that produces the day is:
    <?php echo implode('</td><td>',$calendar['row_headers']); ?>

    but where that gets M – T – W etc from I simply cannot find.

    Plugin Author Marcus

    (@netweblogic)

    NetWebLogic Support

    where it says date_i18n(… you can change the format of days there

    Appreciate your help Marcus – Only reference I can find is in the Month navigation:

    <td class="month_name" colspan="5"><?php echo ucfirst(date_i18n('F Y', $calendar['month_start'])); ?></td>

    this is in both calendar-small and full.php

    The Days element is:

    <tr class="days-names">
    			<td><?php echo implode('</td><td>',$calendar['row_headers']); ?></td>
    		</tr>

    You can try editing classes/em-calendar.php line 276; change $length=1 to 3

    be sure to backup files before editing.

    That totally fixed it, thanks!

    great to hear that! tag this as resolve

    gah! i always forget ‘resolved’!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Events Manager] change d to D’ is closed to new replies.