Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Andy Fragen

    (@afragen)

    Can you provide a URL?

    Thread Starter siriusly

    (@siriusly)

    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

    (@afragen)

    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

    (@afragen)

    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

    (@siriusly)

    I will take a look in a day or so & get back to you. Thank you!

    Plugin Author Andy Fragen

    (@afragen)

    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

    (@afragen)

    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.