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).
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
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.
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.
Update: putting files like pdf.png and docx.png in the “crystal” directory works.
Ciao Fabian.
Creating a directory at wp-content/images/fileicons only adds a new default icon set across Filebase; it does not allow for targetting a specific theme.
Without rewriting your code in item.php…
$img_path = ABSPATH . WPINC . ‘/images/’;
$img_url = site_url(‘/’ . WPINC . ‘/images/’);
$custom_folder = ‘/images/fileicons/’;
… is there a method for controlling the icon set for a multi-site installation to target a specific theme, e.g., wp-content/themes/MY_THEME/images/fileicons/?
Thanks for your input.
— Daniel
That is like a great most https://texttwist.online important page to be generate.