A few days ago I received a question from one of my readers ... He was looking for a simple method of showing file-specific icons next to his download links ...

Needless to say, there is a solution ...

But let's start with the obvious question: when/why you need attachment file type icons in Wordpress?

Here's the thing ... By default, Wordpress will allow you to upload several file types. Images, audio files, videos, etc. And when you upload a file through the media uploader in order to add it to a post/page, Wordpress will automatically embed the file if it is a supported file format.

On the other hand, if you upload an unsupported file type, Wordpress will just display the file name as a plain text link (pointing to the attachment or download page).

Here's the very same document uploaded as a Microsoft Word DOC file and a Microsoft Excel XLSX file:


And here's the live result:


The problem? It's really difficult for a user to guess which file they are downloading!

The point: you'll have to display a file type icon next to your download links, so your users can easily find the file type they’re looking for ...

This is is why I've decided to create this short tutorial where I will show you how to add attachment file icons in Wordpress for different file types.

Interested?

Let's do this!



Join the Discussion
Write something…
Recent messages
AlanJE Premium Plus
Great information and training, Zed, thanks for sharing, Alan.
Reply
smartketeer Premium
Great comment :)

Thanks for the time Alan!
Reply
Raquel14 Premium
Thank you for sharing. It is very informative. I bookmark for later use.
Reply
smartketeer Premium
Thanks for stopping by Raquel!
Reply
dowj01 Premium
That’s a great plugin, v useful. Thank you for the tutorial.
Justin
Reply
smartketeer Premium
Thank YOU!
Reply
TeamIceCream Premium
Hi Zed
Bookmarked for later! Thank you very much!
Sharlee (Chocolate IceCream)
Reply
smartketeer Premium
Once again, thanks for the time Sharlee!
Reply
TomCaldwell1 Premium
Very cool. Extremely helpful to the reader. Thank you Zed.
Reply
smartketeer Premium
Thanks for the time Tom!
Reply
Top