Would you like to display the file type icon next to the download link? Recently our plugin BSK PDF Manager has a new feature to display file type icons in WordPress. Yes, and it's easy. In this article, we will show you how to add file type icons in WordPress.
Let's see demo screenshot first:
Step 1, make sure featured image is enabled
Go to Dashboard --> BSK PDF Pro --> Settings --> Featured Image
Step 2, set an icon for all files
If no icon set to a specific file type then this icon will be shown.
Step 3, enable to set featured image by file type
After featured image set to each file type:
Step 4, display the files in front by shortcode
Here we use the shortocde of:
[bsk-pdfm-category-ul id="32" featured_image="yes" show_pdf_title="yes" target="_blank" show_date="yes" date_format="d/m/Y" date_prefix=" published on: "]
featured_image="yes" show_pdf_title="yes" is necessary to show the default icons for each file type.
It will show the files link as the following:
You can visit the demo from: https://demo.bannersky.com/bsk-pdf-manager-demos/display-pdfs-by-category/by-category-in-unordered-list-with-default-file-type-icons/