ianbatten
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Beautiful taxonomy filters] Style parent / children taxonomies in dropdown?Sorry just to follow, this was the code I used. Can this be modified in a way so rather than adding a dash/indent, it can give the option a different class?
//Add visual information when a terms are children/grandchildren etc. add_filter('beautiful_filters_term_name', 'custom_term_name', 10, 3); function custom_term_name($term_name, $category, $depth){ //We have indentation if($depth !== 0){ $indent = ''; //Add one – for each step down the hierarchy, like WP does in admin. for($i = 0; $i < $depth; $i++){ $indent .= '–'; } return $indent . ' ' . $term_name; } return $term_name; }Forum: Plugins
In reply to: [Beautiful taxonomy filters] Style parent / children taxonomies in dropdown?I can’t say I have – could you explain a little futher how you mean?
Forum: Plugins
In reply to: [Beautiful taxonomy filters] Style parent / children taxonomies in dropdown?Ah okay, that’s a shame. Would there be any way to apply a style to the children/parent?
I’ve used the filter you posted a while back in the forum to add a dash in front of the child name. But ideally looking for a different colour!
Thanks again.
Viewing 3 replies - 1 through 3 (of 3 total)