Add event categories (as colours) to the calendar widget

Home Forums Calendar Products Events Calendar PRO Add event categories (as colours) to the calendar widget

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #912296
    Neasa Ronayne
    Participant

    Hi there,

    Im attempting to add category colours to the calendar widget. For each category on my site i have assigned a color and border colour. I’ve managed to get a single category colour onto the calendar day, but when a day has more than 1 event and category is it possible to display multiple colours? example build here: http://www.philipfarmer.be/club/activites/. Click the calendar icon to view calendar widget.

    When a day has multiple colours id like to split the circle in 2/3/4 segments etc etc…

    Hope you can help?

    cheers

    Philip

    #912334
    Neasa Ronayne
    Participant

    Sorry some more details which might explain this better. see current html output:
    (example from 4th December) there are 2 events added to that date but looking at the class, only the 1 category is output (tribe-events-category-enfants), when I’m hoping to see 2 (tribe-events-category-arts) or more..
    <td class=”circle hentry vevent tribe-events-category-enfants post-130 tribe_events type-tribe_events status-publish hentry”>
    <div id=”daynum-4″>
    4
    </div>
    </td>

    This would be a great feature to have i reckon. look forward to your response!

    #912568
    Brian
    Member

    Hello Again!

    I see what you mean about the event only having one category.

    We are just echoing this for the class:

    echo $wp_query->current_post;

    On this template:

    /events-calendar-pro/views/pro/widgets/mini-calendar/single-event.php

    You can modify that template there to find all the categories of the event and put them into the class.

    If you follow our themer’s guide:

    https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/

    It will show you how to move that template mentioned above to your theme to safely edit.

    Let me know if you have any follow up questions. However, there is not much more we can provide on a customization.

    Thanks

    #932242
    Brian
    Member

    Since there is has not been any activity on this thread for over 2 weeks so I am now closing it. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add event categories (as colours) to the calendar widget’ is closed to new replies.