Replacing File Attachment Icons

This topic contains 1 reply and 2 voices, and was last updated by Sekander Badsha 9 years, 5 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
October 23, 2014 at 4:47 pm 28952
Sekander Badsha 1. How do we replace the file attachment icons with our own ones (by filetype)? 2. We are using the shortcode to display the file on the post [wpuf-meta name="meta_key_name" type="file"] but how do we display our own icons instead of the just filename text? The older versions of the plugin used to have different display icons for various file types uploaded, i.e. docs, xls, audio, etc. These now seem to point to the same default WP icon: ../wp-includes/images/media/default.png Cheers
October 27, 2014 at 2:11 pm 29134
Sekander Badsha Sekander Badsha

Hello Kiwi,

Currently we do not have any feature for attachment thumbnails. But you can use the function wp_get_attachment_thumb_url() or can add icons via JavaScript by determining the file extension.

You can also get idea from this plugin https://wphive.com/plugins/wp-better-attachments/

PS: All of the above actions mentioned above requires a developer.

Viewing 1 Posts - 1 through 1 (of 1 total)