How to Disable PDF Thumbnail Previews in WordPress?

Many WordPress users want to disable PDF thumbnail previews and we will now try to provide you with detailed instructions. But before we begin, we should take a look at the possible reasons for disabling PDF thumbnail previews in WordPress.

Why should you disable PDF thumbnail previews in WordPress?

With the WordPress version 4.7, automatically generated thumbnail previews of PDF documents that are uploaded from the WordPress media uploader was introduced. This is an extremely helpful feature for the majority of WordPress websites. However, many website owners already use PDF plugins that deal with thumbnail previews and the total display of the PDF downloads in the WordPress.

These website owners will probably be looking to disable PDF thumbnail previews in WordPress, since this innovative trait is in a collision with their current PDF uploads. So, now I will show you how you can do this in a very simple and quick manner.

Disable PDF thumbnail previews in WordPress

The only thing you need to do to disable PDF thumbnail previews in WordPress is to insert a very straightforward code snippet to your website. The following code must be added to your theme’s functions.php document or a plugin designated particularly for certain sites.

function disable_pdf_thumbnail_previews() {

$fallbacksizes = array();

return $fallbacksizes;

}

add_filter('fallback_intermediate_image_sizes', 'disable_pdf_thumbnail_previews');

Remember to confirm your modifications.

With this code, you will permit generating thumbnail previews for WordPress because it just offers WordPress an empty arrangement for the sizes of PDF thumbnails. Now would be a great time to try to upload a PDF document to your WordPress website by utilizing the media uploader. You will see that WordPress no longer generates thumbnail previews for your PDF document.

This is the complete procedure of disabling PDF thumbnail previews in WordPress and it is a very simple one, so you don’t have to be an expert. Anyway, I hope that I was able to help you with this.

Share on FacebookShare on Google+Tweet about this on TwitterShare on RedditShare on StumbleUponShare on LinkedIn

Leave a Comment

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