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.)
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?
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.
I will take a look in a day or so & get back to you. Thank you!
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.
Marking this as resolved as there has been no activity in over 2 months.