Add class to items in wp_list_categories()
Yes, it is possible. wp_list_categories accepts a (custom) walker that may handle this. Put the following in your functions.php file: class Custom_Walker_Category extends Walker_Category { function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) { extract($args); $cat_name = esc_attr( $category->name ); $cat_name = apply_filters( “list_cats’, $cat_name, $category ); $link = … Read more