I’m here again asking for help. i had to crop the featured images from ‘top left’, and not ‘center center’. My code worked well, but stopped working suddently. Here is the code :
function modify_slider_image_size(){
add_image_size( 'activello-featured', 1170, 550, array( 'left', 'top' ) );
add_image_size( 'activello-slider', 1920, 550, array( 'left', 'top' ) );
add_image_size( 'activello-thumbnail', 330, 220, array( 'left', 'top' ) );
add_image_size( 'activello-medium', 640, 480, array( 'left', 'top' ) );
/*left in x axis, top in y axis*/
}
add_action( 'init', 'modify_slider_image_size', 10 );
Obviously, it is in the functions.php of my child theme.
I modified the code in your shared child theme files content-archives.php and content-single.php as following to make it work and regenerate thumbnails using the plugin Regenerate Thumbnails – WordPress plugin | WordPress.org