I have a sample site running Drupal 8.1.x, I want to add icons to the taxonomy term.
I have a term called Animals with the following list in it
Cats Dogs Fish
i want to assign an icon for each terms, a picture of a cat for Cats and so on and will be using it as exposed filter. So i want the pictures/icons instead of the the words Cats - Dogs - Fish.
I have looked into template_preprocess_field(&$variables, $hook). I dont know how to go about it, also tried assigning an image filed for each term but the pictures are not showing up on the exposed filter menu.