Add Filterbar to scope
-
TECFB contains li.tribe-events-category-$slug which I am trying to style exactly the same as all other styled classes.
I have tried without success:
adding
$css[] = 'li.tribe-events-category-' . $slug . ',';
in the plugin’s source files,
adding
echo apply_filters( 'teccc_fix_category_background_color', null, 'li.tribe-events-category-' . $slug );
in the plugin’s source files,
adding
li.tribe-events-category-<?php echo $slug ?>,
in the plugin’s view files,
adding
add_filter( 'teccc_fix_category_background_color', function( $empty, $cat_selector ) { return 'li.' . $cat_selector . ', '; }, 10, 2 );
or
add_filter( 'teccc_fix_category_background_color', function( $empty, $cat_selector ) { return 'li' . $cat_selector . ', '; }, 10, 2 );
in my functions.php
Please help!
EDIT: one step further: I’m overriding category.css.php as per the wiki, including
li.tribe-events-category-<?php echo $slug ?>,
at the respective place. When I query ?debug_css, all looks as intended. When I don’t query or query ?refresh_css, the override shows no effect.
- The topic ‘Add Filterbar to scope’ is closed to new replies.