Okay
  Public Ticket #1823162
Category Color
Closed

Comments

  •  2
    gehess started the conversation

    Hi guys,

    just updated your plugin and hoped for a new color function. But as there isn´t yet a function to automatically apply category color in the calendar (e.g. in agenda or month view), could you provide me a workaround how to achieve it somehow? It´s really important for the requirements of my current project. 

    Thanks in advance!

  •  894
    Zhivko replied

    Hi,

    Open your theme functions.php file and add the code from the file I've attached.

    This will assign the color of the category to your event.


    Stachethemes Developer

  •  2
    gehess replied

    Thank you so much! Got an error first, but it was my fault. It all works just fine! And I´m a very happy person right now :)

  •  894
    Zhivko replied

    Make sure the code is between the PHP tags:

    <?php 

    the code

    ?>


    Stachethemes Developer

  •  1
    Juan replied

    Gehess, thank you so much for the private!!!

    Cool!! It works perfectly!!

  •  2
    gehess replied

    Hi guys,

    your provided code doesnt work anymore. I think it happened since the last wp or theme updates. 

    Could you please help me and give some advice, how I can get back to my category colours in the calendar?

    The code you provided is in the file below, Calendar is here.

    Thanks in advance!

  •  2
    gehess replied

    Sorry, never mind. I just figuered out it had to do with some caching issues, as often. 

    Cheers

  • condorshockey replied

    Hi... is this functionality going to be part of the plugin at some point? Even if it was done as "override calendar color with category color" or something like that.

  •  894
    Zhivko replied

    Hi,

    I've just added it to my todo list but it's not priority at the moment.


    Stachethemes Developer