WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] change d to D (9 posts)

  1. Lee Rickler
    Member
    Posted 2 years ago #

    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/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    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

  3. Lee Rickler
    Member
    Posted 2 years ago #

    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.

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

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

  5. Lee Rickler
    Member
    Posted 2 years ago #

    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>
  6. agelonwl
    Member
    Posted 2 years ago #

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

    be sure to backup files before editing.

  7. Lee Rickler
    Member
    Posted 2 years ago #

    That totally fixed it, thanks!

  8. agelonwl
    Member
    Posted 2 years ago #

    great to hear that! tag this as resolve

  9. Lee Rickler
    Member
    Posted 2 years ago #

    gah! i always forget 'resolved'!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic