Title: ianbatten's Replies | WordPress.org

---

# ianbatten

  [  ](https://wordpress.org/support/users/ianbatten/)

 *   [Profile](https://wordpress.org/support/users/ianbatten/)
 *   [Topics Started](https://wordpress.org/support/users/ianbatten/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ianbatten/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ianbatten/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ianbatten/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ianbatten/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ianbatten/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Beautiful taxonomy filters] Style parent / children taxonomies in dropdown?](https://wordpress.org/support/topic/style-parent-children-taxonomies-in-dropdown/)
 *  Thread Starter [ianbatten](https://wordpress.org/support/users/ianbatten/)
 * (@ianbatten)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/style-parent-children-taxonomies-in-dropdown/#post-11254498)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Beautiful taxonomy filters] Style parent / children taxonomies in dropdown?](https://wordpress.org/support/topic/style-parent-children-taxonomies-in-dropdown/)
 *  Thread Starter [ianbatten](https://wordpress.org/support/users/ianbatten/)
 * (@ianbatten)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/style-parent-children-taxonomies-in-dropdown/#post-11254485)
 * I can’t say I have – could you explain a little futher how you mean?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Beautiful taxonomy filters] Style parent / children taxonomies in dropdown?](https://wordpress.org/support/topic/style-parent-children-taxonomies-in-dropdown/)
 *  Thread Starter [ianbatten](https://wordpress.org/support/users/ianbatten/)
 * (@ianbatten)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/style-parent-children-taxonomies-in-dropdown/#post-11252279)
 * 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)