• Resolved dan

    (@danchristopher)


    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!

    https://www.ads-software.com/plugins/events-manager/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    hi,

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

    Thread Starter dan

    (@danchristopher)

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

    Plugin Support angelo_nwl

    (@angelo_nwl)

    Thread Starter dan

    (@danchristopher)

    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?

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

    Thread Starter dan

    (@danchristopher)

    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.

    Cheers.

    Plugin Support angelo_nwl

    (@angelo_nwl)

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Category colours on fullcalendar’ is closed to new replies.