WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Events Manager: Change Widget's Default List Item Format (5 posts)

  1. cvc1968
    Member
    Posted 2 years ago #

    I cannot seem to find the setting that will change the Events Widget Default List Item Format from:
    #_LINKEDNAME<ul><li>#j #M #y</li><li>#_TOWN</li></ul>
    To:
    #_LINKEDNAME<ul><li>#M #j, #Y</li><li>#_TOWN</li></ul>
    Meaning that every time I drag the widget into a sidebar, I don't want to have to change the date format. I've changed my date format everywhere I can, but no where do I see the string above in the settings, nor any reference to the widget defaults.

    How can this change be made? I can't tell my client that they will have to modify that code every time they drag the widget into their sidebar.

    Thanks.

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

  2. agelonwl
    Member
    Posted 2 years ago #

    one way to do it is modify php file at events-manager/widget/em-events.php at around line 12

    *currently not update safe.

  3. cvc1968
    Member
    Posted 2 years ago #

    Yes, I found the appropriate line in the plugin code. Of course, I really don't want to modify that file.

    I attempted to override the code in my functions.php by copying the entire class from the plugin file, changing its name, and removing the original action.

    Unfortunately, I wasn't able to get it all to work. I may try again when I get some other work done on this project, though it is an awful lot of work to change one line of code.

    I don't understand why this string isn't editable in the Formats tab of the plugin settings page. Every other possible display string is editable from there.

    If this becomes too big a fuss, the client may just have to either learn how to change it in the widget or live with the European date format in the widget.

  4. Daedalon
    Member
    Posted 2 years ago #

    Sounds like a sensible suggestion to me to have this string among the Formats/Layouts settings.

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    I'd change it to #_EVENTDATES, which you can already modify in the settings, will that do?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic