How Do I Create a Custom Image Size in WordPress?

Creating a custom image size in WordPress is not as difficult as it may seem. All you need is to know how to use the CSS and the WordPress media query. Here’s how to do it:

1. Open the file wp-config.php and find the line that reads:

define( ‘IMAGE_WIDTH’, ’80’ );

2. Change the value to the size you want your image to be.

For example, if you want your image to be 50% the size of the screen, change the value to 50.

3. Save the file and reload your WordPress site.

Your new custom image size will be in effect.