Skip to content

Extending File Type icons to use in programming

Tryten edited this page Feb 2, 2015 · 1 revision

Font-Awesome includes some great file type icons, like fa-file-word-o, but when using the font programmatically, these classes are not as helpful as if the classes relied on the actual file extensions, like fa-file-doc-o or fa-file-docx-o.

The following jsfiddle example shows how you can edit or override the css to include these classes as well as a JavaScript example of how this can be used.

http://jsfiddle.net/pyrojonc/09x58og1/