Step By Step Guide To Upload Webp Images in WordPress Without Plugin 2021

Step By Step Guide To Upload Webp Images in WordPress Without Plugin 2021

So most of the people wanted to know how to Upload Webp Images in WordPress, which is very simple, and you just needed to do only one time. And the task will be done till the time you change your theme. 

But most of the people are saying use plugin instant of using any code, but I just wanted to tell you only one thing, if you are using a plugin for every small thing, then your website will be slow. This is pathetic, in my opinion, and you need to know how to boost website speed in 2021

Do you know Google introduced this Webp image? 

So now, let’s start with the details of this and start with the settings. 

Upload Webp Images in WordPress

So This is one of the best and easiest ways to upload Webp Images in WordPress, and you don’t require and plugins. As earlier I already told you about the same, that you don’t need any plugins for this option. 

So now, just follow all the steps below. 

Guide To Upload Webp Images In WordPress

So by using this type of image, you will get the fast result of loading images, and Webp images are just like JPEG if we talk about the quality-wise. 

After So much talk, let’s learn how to add that Webp Image Code in WordPress

Step 1 – Open ” Theme Editor” In Appearance

Step 2 – Select the ” Theme Function (functions.php) ” 

Step 3: Go to the code section and Save the theme code on your notepad, might be if you made any mistake, then we also do have the code by that we can fix everything. 

Step 4 – No, just at the bottom. Add The below code. 

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’ );

Step 5: Once You Added the code, click on the Update button, and that’s all. 

Now you are ready to rock, and now if you test, you will not get any problem in your dashboard. 

If this was helpful for you, don’t forget to share with your friends and keep tuned with us for more updates. 

Spread the love
Default image
Shivankar Kukshal is an online portal where you can check out about Blogging Tips, SEO Tips, Trending Tech Updates, and many more things
Articles: 68

Leave a Reply

Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124