Adding icons to text links without any programming, not using if elses or functions is possible with Iconize which is only a css file and the related icons.

How does Iconize work?

Iconize, which is a css file, simply looks for the pre-defined texts in the website and shows the icon mentioned in the css file. For ex: Iconize looks for the .pdf text in the website and when finds it, adds the icon after that.

Icons For Text Link Iconize