Support » Plugin: Events Manager » Events Manager: Change Widget's Default List Item Format

  • Resolved cvc1968


    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>
    #_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.


Viewing 4 replies - 1 through 4 (of 4 total)
  • one way to do it is modify php file at events-manager/widget/em-events.php at around line 12

    *currently not update safe.

    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.

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

    Plugin Author Marcus


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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Events Manager: Change Widget's Default List Item Format’ is closed to new replies.