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

  1. danchristopher
    Posted 8 months 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. angelo
    NetWebLogic Support
    Posted 8 months ago #


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

  3. danchristopher
    Posted 8 months ago #

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

  4. angelo
    NetWebLogic Support
    Posted 8 months ago #

  5. danchristopher
    Posted 8 months 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 8 months ago #

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

  7. danchristopher
    Posted 8 months 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. angelo
    NetWebLogic Support
    Posted 7 months ago #

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


You must log in to post.

About this Plugin

About this Topic


No tags yet.