Title: Legend explanation CSS
Last modified: August 21, 2016

---

# Legend explanation CSS

 *  Resolved [siriusly](https://wordpress.org/support/users/siriusly/)
 * (@siriusly)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/legend-explanation-css/)
 * Hi — I’m having a bit of trouble targeting the legend explanation (added to functions.
   php) to style it. Can’t seem to get it to work in either the functions.php as
   suggested in the wiki, or in my CSS. Just want to change the text color and alignment.
   Thanks!
 * [http://wordpress.org/plugins/the-events-calendar-category-colors/](http://wordpress.org/plugins/the-events-calendar-category-colors/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/legend-explanation-css/#post-4423323)
 * Can you provide a URL?
 *  Thread Starter [siriusly](https://wordpress.org/support/users/siriusly/)
 * (@siriusly)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/legend-explanation-css/#post-4423332)
 * [http://bit.ly/1dkW6q7](http://bit.ly/1dkW6q7)
 * Also, I’m trying to figure out how to get the legend explanation to display only
   on the month view, as clicking the legend labels has no effect in list view of
   upcoming events. (I can start another topic if you want.)
 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/legend-explanation-css/#post-4423358)
 * By default the legend will only display on the month view. Can you post of copy
   of your theme’s functions.php file to a snippet service like pastebin?
 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/legend-explanation-css/#post-4423517)
 * How do you add the legend explanation? It should be possible to only display 
   it for month view.
 * If you point me to the code, maybe I’ll be able to fix it.
 *  Thread Starter [siriusly](https://wordpress.org/support/users/siriusly/)
 * (@siriusly)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/legend-explanation-css/#post-4423522)
 * I will take a look in a day or so & get back to you. Thank you!
 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/legend-explanation-css/#post-4423529)
 * sirisly, use something like the following to add your legend explanation.
 *     ```
       add_action( 'tribe_events_after_the_title', 'my_only_show_legend_explanation_in_month_view' );
       function my_only_show_legend_explanation_in_month_view() {
       	global $wp_query;
       	if( !isset( $wp_query->query_vars['post_type'] ) or !isset( $wp_query->query_vars['eventDisplay'] ) ) return;
       	if ( 'tribe_events' === $wp_query->query_vars['post_type'] and 'month' === $wp_query->query_vars['eventDisplay'] ) {
       		add_filter('teccc_legend_html', 'my_add_legend_explanation');
       	}
       }
       function my_add_legend_explanation($html) {
       	echo '<div class="legend-explanation"> Click label to focus/unfocus category: </div>'
       		. $html ;
       }
       ```
   
 * Let me know how that works.
 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/legend-explanation-css/#post-4423549)
 * Marking this as resolved as there has been no activity in over 2 months.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Legend explanation CSS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/the-events-calendar-category-colors_52b1d1.
   svg)
 * [The Events Calendar: Category Colors](https://wordpress.org/plugins/the-events-calendar-category-colors/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar-category-colors/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar-category-colors/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar-category-colors/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar-category-colors/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar-category-colors/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/legend-explanation-css/#post-4423549)
 * Status: resolved