Thumbnail crop position
-
Hi,
In a normal theme you can crop thumbnail giving a position, for example:
add_image_size('thumbname', 500, 400, array('center', 'top'));– but in AMPforWP i can’t get any information about the position part. I want to have a thumbnail with center+top and not center+middle. I’ve tried:$args = array("tag"=>'div',"tag_class"=>'image-container','image_size'=>'full','image_crop'=>'true','image_crop_width'=>$width,'image_crop_height'=>$height, 'responsive'=> true, "image_crop_x" => 'center', "image_crop_y" => 'top');amp_loop_image($args);but
image_crop_xandimage_crop_yhas no effect.Can this be done in AMPforWP?
The topic ‘Thumbnail crop position’ is closed to new replies.