• jeffimc

    (@jeffimc)


    Hi,

    I’m wondering if there’s a way for us to include images in the event calendar (i.e. have a featured image for an event that displays right in the box for that date). Is this something we could add through a filter?

    As a secondary piece to this, we’ve tried using the filter to change the tooltip as described at https://gist.github.com/stephenh1988/4040699, but adding this and other filters to the themes function file doesn’t have any effect. Are we missing something there?

    Thanks!

    -Jeff

    https://wordpress.org/plugins/event-organiser/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Hi Jeff,

    This wouldn’t be possible as the event thumbnail is part of the returned data set. If it were, in theory you could (probably) set the background when the event is being rendered, but I’ve not tested this.

    Regarding using the filters on the event calendar, please note that the calendar is cached, so changes will only take affect when that cache is cleared (i.e. when an event is updated).

    Thread Starter jeffimc

    (@jeffimc)

    Stephen,

    Thanks for the quick reply. I was able to get the image pulling in within the tool tip, so hopefully that will work for now.

    -Jeff

    Thread Starter jeffimc

    (@jeffimc)

    As a final update on this, I ended up figuring out how to get this working by adding in $event[‘image’] to the data set in event-organiser-ajax.php (and setting it to blank), updating the fullcalendar.js files to display the image, and then used the eventorganiser_fullcalendar_event filter in the theme function file to check if the event has a post thumbnail and setting the $event[‘image’] to the full <img> tag if it does.

    For our purposes we can add these changes back in when updating, but this would be a cool feature to think about for future versions. Thanks again.

    -Jeff

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Images in Event Calendar’ is closed to new replies.