Tuesday, November 24, 2020
Home Blogging How to Disable PDF Thumbnail Previews in WordPress

How to Disable PDF Thumbnail Previews in WordPress

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.

function wpb_disable_pdf_previews() {
$fallbacksizes = array();
return $fallbacksizes;
add_filter('fallback_intermediate_image_sizes', 'wpb_disable_pdf_previews');

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.



Please enter your comment!
Please enter your name here

- Advertisment -

Most Popular

24 Best Online Jobs from Home Without Investment

Do you already know online jobs and work from dwelling jobs have gotten a scorching development after Covid-19. Earlier there have been a handful...

Top 25 Data Entry Jobs from Home Online/Offline: No Investment

Data Entry jobs are actually nice for individuals who need to work from house however not a lot certified. Whether you're a housewife, a...

What is the average salary in India?

Why you should learn about the average salary in India and remainder of the world. It is essential to your profession so it's a must...

Best Courses after 10th Standard

Results for 10th normal are simply being declared throughout India. As pupil or guardian, you should be fearful about greater schooling courses after 10th normal. Nowadays, there...

Recent Comments