Hello I would to modify the crop position of the_post_thumbnail();
So I look in the wp-includes/media.php file and go to the image_resize_dimensions function and modify
$s_x = floor( ($orig_w - $crop_w) / 2 );
$s_y = floor( ($orig_h - $crop_h) / 2 );
to
$s_x = 0;
$s_y = 0;
in order to have the position to top of the picture.
But I would like it top crop at 20% from the top. Can someone help me with the syntax?
Many thanks for your time and help.