How to get rid of the 1 appearing sometimes after an icon

That’s because get_cat_icon is echoed without the “echo=false” parameter. So, to remove the “1” that is displayed after the icons, do this :

echo get_cat_icon("echo=false");

or just :

get_cat_icon();