0

Create Custom Image Sizes For Your WordPress Theme

When you upload an image to WordPress it will automatically convert the same Image to multiple sizes while still keep the best quality.

The default image sizes are setup on the settings -> media screen.

Media Settings

But WordPress will only allow you to use 3 image sizes, thumbnail, medium and large which you can choose from when you add the image to your post.

If you want more options for options then you need to add a bit of code into your functions.php file, use the below snippet to add additional images sizes to your media files.

This uses the WordPress function add_image_size to add a new image size to your WordPress theme.


 

Leave a reply