Hi @bithons!
The better way to change thumbnail sizes is create your own child theme for Azeria. Then add to your child theme file functions.php with next code:
<?php
add_filter( 'azeria_image_sizes', 'azeria_child_image_sizes' );
function azeria_child_image_sizes( $sizes ) {
$sizes['post-thumbnail'] = array(
'width' => 850,
'height' => 400,
'crop' => true
);
return $sizes;
}
This sizes will be applied for all new images. To change size of existing images – you need to use Regenerate Thumbnails plugin. We checked this code with exactly the same size image as you describe – all works fine.
Child themes tutorial you can find here
Thanks for you reply it worked, and the Regenereate Thumbnails is a handy one. And I am using a child-theme now.
I used this code for setting more image size settings, for people who maybe don’t know how to do it.
$sizes = array(
'post-thumbnail' => array(
'width' => 850,
'height' => 450,
'crop' => true
),
'slider-thumbnail' => array(
'width' => 1204,
'height' => 900,
'crop' => true
),
'related-thumbnail' => array(
'width' => 210,
'height' => 180,
'crop' => false
)
);
return $sizes;
}