Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey Hannab. Thanks for the note here. Have you tried modifying the widget itself, specifically the events-list-load-widget-display.php file? If you’re familiar with WordPress date/time formatting it should be easy to do therein.

    Let me know if I’ve misunderstood the request or if you’re looking for more specific guidance than that. Cheers!

    Thread Starter hannab

    (@hannab)

    Hi Roglagatta,
    I’m not a programmer so I better not try editing any php files… any chance you can give me some step-by-step guidance? Would be very appreciated!

    Hanna

    You’ll have to do this by editing the PHP file to change the way the date is displayed

    The problem is probably only relevant on one-day events – events that span multiple days will need both start and finish dates

    You’d need to use a PHP If/Else calculation to display the date in one way for a one-day event (eg May 10, 2012, 5:30 pm — 7: pm) and in another way if it lasts more than a day (eg May 10, 2012, 5:30 pm — May 11, 2012 7 pm)

    Here are links to threads about PHP date formatting. It’s relatively complex but the way to format dates is well defined and it’s easy enough to copy the PHP file as a backup, modify it then reload the page to test. If you break anything just restore the original file:

    https://www.ads-software.com/support/topic/plugin-the-events-calendar-formatting-dates-in-upcoming-events-list-view?replies=3

    https://www.ads-software.com/support/topic/plugin-the-events-calendar-countdown-to-event-start-date?replies=4

    Nick Froome

    Nick,

    I too am looking to do the same thing but am not familiar with codes. I found where roblagatta was talking about this events-list-load-widget-display.php file. But I don’t know where to go from there. Could I get some further instructions please? Thanks.

    Hey ang32377. Are you still having issues here? Where are you at and what do you need help with? I’ll try to point you in the right direction ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: The Events Calendar] Can I Remove duplicate date in sidebar widget?’ is closed to new replies.