Events Manager
[resolved] Category colours on fullcalendar (8 posts)

  1. dan
    Posted 1 year ago #

    Hi, this post might belong on the wp-calendar forum not sure.

    We've created event categories and given them all an individual colour. One of the categories is 'Hall Booked' and relates to when the community hall has been booked for a class/event etc.

    However on the calendar I'd like to always display these events as their 'primary' category (ie. class, festival) which has a different colour. The problem I'm having is any category that starts with a letter after 'H' (for Hall) is sent lower into the hierarchy so all the categories in these events show as the Hall Booked colour.

    It works flawlessly if I set the name of Hall Booked to zHall Booked so it appears last in the hierarchy, but this obviously isn't aesthetically pleasing. How else can I make 'Hall Booked' so always be the lowest category in the hierarchy?

    Any help would be great. Thanks!


  2. gelo_nwl
    NetWebLogic Support
    Posted 1 year ago #


    do you have sample link to your site for us to see and analyze ?

  3. dan
    Posted 1 year ago #

    Hi, you should be able to see the issue here: http://www.scotlandisland.org.au/calendar

  4. gelo_nwl
    NetWebLogic Support
    Posted 1 year ago #

  5. dan
    Posted 1 year ago #

    Hi, thanks for your reply but unfortunately this doesn't help us so much because the 'Hall Booked' category is standalone and not a child of other categories.

    On the calendar above you see that the 10 August 'SIRA Committee Meeting' appears in blue, but only because the Hall Booking category is labeled as 'zHall Booked'. If you change the category name to 'Hall Booked', the meeting item appears as #FFF which is the colour assigned to Hall Booked (because the letter 'H' is being prioritised over 'S').

    The best way would be for the calendar to ignore that Hall Booked has a colour at all, and so it just defaults to the other category colour assigned to it. That second link you posted explains how we could do this - but it's for a different calendar plugin!?

    Not quite sure how else we could achieve this desired functionality. Any other ideas?

  6. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    Can you post the code / formatting you're using to do your category colors? We might be able to suggest an edit.

  7. dan
    Posted 1 year ago #

    Hi, we're simply using the full calendar shortcode [fullcalendar] and then assigning the category colour using the Event Category listings. The problem I guess is that you can't have a null value for the colour so it defaults to white.

    The only other edits I made were to the CSS to ensure that the width of each event on the calendar appears appropriately - I think there's a weird theme formatting error happening here with widths - but this is otherwise largely unrelated.


  8. gelo_nwl
    NetWebLogic Support
    Posted 1 year ago #

    yes, at the moment null value for category color is not allowed.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.