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:
Replaced
$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,
David.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Change $color in theme’s functions.php’ is closed to new replies.