• Resolved conradude

    (@hellodracon)


    Hello, I’d like to add a class to past events (currently, we can show past, futur or past and futur events) but I can’t find how they are different from each other. my goal would be to override templates/list/list.php in my child theme like we can do with some other plugin (by just loading my new file in the child theme following strict path). Can we do this ? if yes, what is the path to follow or is there another solution ?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Jyoti Bhandari

    (@jyoti197)

    Hi @hellodracon,

    Thanks for using our plugin.

    Currently, we have not passed any class based on event time(past, future, all) but this is possible after the customization code.
    Please follow the below-shared instruction:-
    Go to plugin main folder template-events-calendar >> templates\list\list.php and add code in $time = $attribute['time']; Line No. 4 and after that Replace $events_html.='<div id="event-'.esc_attr($event_id).'" class="ect-list-post '.esc_attr($list_style).' '.esc_attr($event_type).' '.$time.'">'; code line No. 17,50,86.

    2) Current version of our plugin does not support override templates using the theme.

    Thanks & Regards

    Thread Starter conradude

    (@hellodracon)

    Hello @jyoti197 and thank you for your quick answer.

    Yes I did a modification already on this file to compare the date of the event and the actual date, defined a class on that to differentiate events.

    It was especially to know if there was an override possibility to make sure the next update wouldn’t erase my modifications, but I’ll edit my file after next update until then.

    Thanks a lot, I think that would be a nice update to add this possibility.
    Have a nice one !

    Plugin Support Jyoti Bhandari

    (@jyoti197)

    Hi @hellodracon,

    Don’t worry We will add the above-shared code in the next update.

    Thanks & Regards

    Thread Starter conradude

    (@hellodracon)

    Oh sorry, I was thinking about the override possibility as an update ! But yes, still a good idea to add the passed event thing in it !
    Thanks !

    • This reply was modified 3 years, 6 months ago by conradude.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Override pages’ is closed to new replies.