Image Sizes

List of Custom Image Sizes

  • property-box-thumbnail
  • property-row-thumbnail

Overwriting Image Size in Theme

NOTE: for overwriting image sizes is used init action. Standard after_theme_setup will not work because image sizes are defined in plugin which allows only to redefine size in init action.

NOTE: after changing the image size don’t forget to regenerate thumbnails.

function custom_image_sizes() {
    add_image_size( 'property-box-thumbnail', 270, 224, true );
}

add_action( 'init', 'custom_image_sizes' );