Editing tribe_calendar_grid();

Home Forums Calendar Products Events Calendar PRO Editing tribe_calendar_grid();

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41071
    Jason
    Participant

    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.

    Thanks,

    Jason

    #41083
    Jonah
    Participant

    Hi Jason,

    The first thing I would recommend is taking a look at our Themer’s guide to help you get started making customizations: https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/

    Then, also take a look at our documentation which contains information on most all our plugin functions to help you with customizations: https://theeventscalendar.com/support/documentation/

    Where did you want to display the event category underneath the name? When viewing the events list, or when viewing single events?

    Regards,
    – Jonah

    #41095
    Jason
    Participant

    Hi Jonah,

    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.

    Thanks,

    Jason

    #41126
    Jonah
    Participant

    Hi Jason,

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Editing tribe_calendar_grid();’ is closed to new replies.