I’m trying to edit the tribe_calendar_grid(); function to include the event category below the the event name. Is it possible to find out where the original function is defined in the plugin so I can define a similar one in my theme’s functions file?
Of course if there’s a simpler way to do this, that’d be even better.
I’d like to add the category on the calendar grid. It currently appears in the tooltip when the event names are hovered, but we would like to also add it to the calendar itself in addition to the tooltip.
You would want to edit /wp-content/plugins/the-events-calendar/views/table.php to include additional items in the grid. Make a copy and place in an ‘events’ folder in your theme. Then you can make all the changes you want. You can use get_the_terms() to output your event categories. Here is an example: https://gist.github.com/jonahcoyote/db8e51f0bfeaff31453c
I hope that helps!
Cheers,
– Jonah
Author
Posts
Viewing 4 posts - 1 through 4 (of 4 total)
The topic ‘Editing tribe_calendar_grid();’ is closed to new replies.