Home Forums Plugin Support WP User Frontend Pro Replacing File Attachment Icons

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Sekander Badsha 4 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28952

    kiwi
    Participant
    Post count: 99

    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

    #29134

    Sekander Badsha
    Member
    Post count: 2067

    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://wordpress.org/plugins/wp-better-attachments/

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

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Replacing File Attachment Icons’ is closed to new replies.