• Hi there,
    I was wondering if anyone can help with the code to include in the template to add a specific class to an event that is currently happening in month view.
    I feel that it should probably go into calendar-event.php template and be structured something like this:

    if ( ! empty( $event->is_now ) ) {
    $classes[] = ‘happens-now’;
    }

    but I’m not versed enough in php to figure it out.
    Any help will be greatly appreciated!
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @amely880

    You will be glad to know that we are working on an is_now property for events!

    Stay tuned, we’ll report back here as soon as it’s out.
    In the meantime, you might like this extension: https://theeventscalendar.com/extensions/events-happening-now/

    Cheers,
    Geoff

    Plugin Support Gladys

    (@greventscalendar)

    Hi there,

    We wanted to let you know with our latest release of The Events Calendar 6.0.2; we have added the is_now property. Be sure to review our full Release Notes for more details and update your plugin at your earliest convenience.

    As always, we suggest testing updates on a staging site first and having a recent backup, but it should all be smooth sailing. If you implemented any workarounds, you may remove them after updating the plugins.

    If you still have issues after updating to the latest releases, please open a new forum thread and include any specific details and screenshots if possible.

    Have a great day,
    Gladys

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Highlight currently happening event in the month view’ is closed to new replies.