WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. danchristopher
    Member
    Posted 7 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!

    https://wordpress.org/plugins/events-manager/

  2. angelo
    NetWebLogic Support
    Posted 7 months ago #

    hi,

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

  3. danchristopher
    Member
    Posted 7 months ago #

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

  4. angelo
    NetWebLogic Support
    Posted 7 months ago #

  5. danchristopher
    Member
    Posted 7 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 7 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
    Member
    Posted 7 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.

    Cheers.

  8. angelo
    NetWebLogic Support
    Posted 7 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.