Changing/adding some simple content in adv widget

Home Forums Calendar Products Events Calendar PRO Changing/adding some simple content in adv widget

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43792
    Graeme
    Participant

    Forgive my ignorance and seeming inability here.
    I would like to add the day and remove the year from the events listed in the adv widget. How can I do this please? Many thanks for your help.

    #43811
    Jonah
    Participant

    Hi Graeme,

    First make a copy of /wp-content/plugins/events-calendar-pro/views/events-advanced-list-load-widget-display.php and place in an ‘events’ folder in your theme. Then on line 46 you’ll find the function for the start date and on lines 50 and 52 for the end date. Here you can pass in arguments to set the date/time format using the PHP date format: http://php.net/manual/en/function.date.php (the end date already has some arguments for an example). You can use the start/end date functions as many times as you want, i.e. echoig multiple times with different format/output.

    I hope that helps!

    – Jonah

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Changing/adding some simple content in adv widget’ is closed to new replies.