Join our Telegram and Youtube Channels

How to upload webp images in WordPress Easily without any plugin

Hey Friends, Let's see How to add Webp images without any Plugins I hope this Method helps upload Webp images on your WordPress Sites in just a few simple steps. you want to upload a Webp image on your WordPress site, just follow this article.

You can Receive the many SEO benefits of webp files. This webp image format is very small in size. So this webp image format is fast-loading on your website.

What are Webp images & uses of Webp images in WordPress?

Webp image format new advanced modern image format for webp usage. This Format of Image image Used by many more Webpage. webp Format image is 24 - 35 percent smaller than PNG and JPEG Image formation Can not losing Picture Quality.

If your website images are not loading fastly. then you can Convert your all images to Webp format can help Fastly load your website speedily and Improve your Speed Scores.

To learn more about image compression, see our guide on how to optimize images and image compression for the web.

Since Webp is an Advance file format in Small size it's used for many more websites. but it is still not Working all Web Browser. only supported on Chrome, Firefox, Edge browser can Supports webp images.

Should You Use WebP images in WordPress?

Webp image is best for WordPress websites. Webp images can help to Reduce Your WordPress Website Loading Speed. I Recommend for you use the WordPress website for best practices to use with the WordPress Caching plugin, CDN, and more.

But Truth is WordPress is not Supported WEBP Images And WordPress did not allow to upload of WEBP images.

So, you want an image compression plugin for upload Webp images on WordPress. but you still Upload WordPress Supported File formats like JPEG, Png, and Gif image formats. So, it's used as a Backup.

you can use lots of image files on your WordPress website. so, large image files can be makes showing Slow on your website. You can be facing this problem on your site then you can Consider using webp image on your website.

Do you want to use WEBP images in WordPress?

Webp image format is a new advance of image format. That allows a better-compressed size of images for reducing your website file size. This makes your website loading faster and saves your website bandwidth.

In the article, we will show how to upload Webp images on WordPress without any plugins. Just follow the simple Step on my blog. First, click the download button and download the file.

How to create Webp image on blogger without any Error and Plugin

  • Step 1: First login to your admin panel on WordPress
  • Step 2: Click the "Appearance" option on the sidebar
  • Step 3: Select "Theme Editor" on the "Appearance" Option
  • Step 4: Open the "Theme Editor '' and find the function.php
  • Step 5: Copy the Downloaded Php Script on your Dashboard
  • Step 6: And Paste the script at the bottom of the funtion.php
  • Step 7: Well Done. you now can upload webp images on WordPress
function webp_upload_mimes( $existing_mimes ) {
// add webp to the list of mime types
$existing_mimes['webp'] = 'image/webp';
// return the array back to the function with our added mime type
return $existing_mimes;
}
add_filter( 'mime_types', 'webp_upload_mimes' );
//** * Enable preview / thumbnail for webp image files.*/
function webp_is_displayable($result, $path) {
if ($result === false) {
$displayable_image_types = array( IMAGETYPE_WEBP );
$info = @getimagesize( $path );
if (empty($info)) {
$result = false;
} elseif (!in_array($info[2], $displayable_image_types)) {
$result = false;
} else {
$result = true;
}
}
return $result;
}
add_filter('file_is_displayable_image', 'webp_is_displayable', 10, 2);

Video Guide 👇

Final Words

I think this script will be helpful to upload a webp design image in WordPress without any error. So, use this script on your WordPress site for uploading webp images on your website. One more thing please support my website and share my article and Follow my blog on Google News.

Related Posts

Post a Comment

Table of Contents