Custom File Type Icons

WP-Filebase uses WordPress’ default file type icons in wp-includes/images/crystal for files without a thumbnail. To use custom icons copy the icon files in PNG format named like pdf.png or audio.png to wp-content/images/fileicons (you have to create that folder first).

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

4 thoughts on “Custom File Type Icons

  1. VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

    Hi,

    Could you elaborate on the icons?? Which .png named files can I add? Is this for the filetree view, or how is the naming for those?

    Thanks,
    Francisco

  2. Fabian says:
    VN:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

    Hi,

    The custom icons are used for filetree and %file_icon_url% and %file_small_icon% in templates if no thumbnail has been uploaded or generated. Icons should be at least 32px in height.

  3. Wes says:
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

    I created the directory (wp-content/images/fileicons) and added a file called pdf.png, but it doesn’t work. I still see the default document icon.

  4. Wes says:
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

    Update: putting files like pdf.png and docx.png in the “crystal” directory works.

Leave a Reply

Your email address will not be published. Required fields are marked *