WordPress.org

Ready to get started?Download WordPress

Forums

My Calendar
{daterange} format "minus" between dates (4 posts)

  1. pixilla
    Member
    Posted 2 years ago #

    I have a multi-day-event and use {daterange}.
    On website it shows me "day month year - day month year". How a can change the "-" between dates to a other symbol or text.

    http://www.pixilla.de/kalender/

    http://wordpress.org/extend/plugins/my-calendar/

  2. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    The n-dash is hardcoded into the file, I'm afraid. That means you either need to edit the core file (my-calendar-templates.php) or you need to do some CSS trickery to customize that display.

    However, I did just release version 1.11.0 which adds some new custom date formatting options you may want to take a look at. They may not solve this issue, but they should still be useful.

  3. pixilla
    Member
    Posted 2 years ago #

    Thank you for update and info that is in "my-calendar-templates.php".
    I change in #172 between the two <span>

    $details['daterange'] = ($date == $date_end)?$date:$date." <span>bis</span> ".$date_end;

  4. Joe Dolson
    Member
    Plugin Author

    Posted 2 years ago #

    Great. One of many, many things I'd like to eventually have as user configurable, but hasn't gotten there yet.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.