Lately, one in all our readers requested us learn how to disable PDF thumbnail previews in WordPress. Launched in WordPress 4.7, this function creates thumbnail pictures for all PDF recordsdata that you simply add. On this article, we are going to present you learn how to simply disable P-D-F thumbnail previews in WordPress.
Why Disable PDF Thumbnail Previews in WordPress?
WordPress 4.7 began producing thumbnail previews of PDF recordsdata uploaded from WordPress media uploader.
It is a very helpful function for many WordPress websites.
Nonetheless, some website house owners might already be utilizing PDF plugins that deal with thumbnail previews and the general show of the PDF downloads on their web site.
If the brand new function is conflicting with their present PDF uploads, then they might wish to disable P-D-F thumbnail previews in WordPress.
Having stated that, let’s check out learn how to simply disable P-D-F thumbnail previews in WordPress 4.7 and later variations.
Disable P-D-F Thumbnail Previews in WordPress
This tutorial requires you so as to add a easy code snippet in your WordPress website. Should you haven’t carried out this earlier than, then you could wish to see our information on pasting code snippets from internet into WordPress.
You’ll need so as to add this code to your theme’s capabilities.php file or a site-specific plugin.
Don’t overlook to save lots of your adjustments.
This code merely provides WordPress an empty array for P-D-F thumbnail sizes and stops WordPress from producing thumbnail previews.
Now you can strive importing a PDF file to your WordPress website utilizing the media uploader. You’ll discover that WordPress is not going to generate any thumbnail previews in your PDF file.
You May Also Like : How to Fix Pluggable.php File Errors in WordPress
We hope this tutorial helped you learn to disable P-D-F thumbnail previews in WordPress. You may additionally wish to see our record of 24 will need to have WordPress plugins for enterprise web sites.
If you liked this article, make sure to hit the bell for getting our latest updates and share this article with your friends in every social media platforms.