Support » Plugin: WP FullCalendar » Change $color in theme’s functions.php

  • Hi,

    Your plugin saved my neck, loving it! 🙂

    I’m using it in connection with Colorful Categories to display events (custom post type). I managed to make the event names in calendar use different colour based on the event types (a custom taxonomy) by editing your plugin’s php file:


    $color = "#a8d144";

    on line 195 with

    $term_list = wp_get_post_terms($post->ID, 'event_type', array("fields" => "all"));
    $color = get_term_meta($term_list[0]->term_id, 'cc_color', true);

    I’d like to avoid having to do that and was wondering if there’s a way to move that bit of code into the theme’s functions.php file so I don’t lose my code with the next update of your plugin.

    Thanks for any hints.

    Kind regards,

Viewing 1 replies (of 1 total)
  • Plugin Support angelo_nwl



    not sure if this will work out of the box however you can try something like this

    function my_wpfc_custom_color( $more_array, $post_date ){
     $more_array['color'] = "#000";
     return $more_array;
Viewing 1 replies (of 1 total)
  • The topic ‘Change $color in theme’s functions.php’ is closed to new replies.