Thats my Code
[types field='foto' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='300' height='230' crop='true' crop_horizontal='center' crop_vertical='top' index="0"][/types]
but its not cropping from the top?
Hello,
I assume we are talking about a custom image field "foto" created with Types plugin, I have tried the same shortcode as you mentioned above in my localhost, and it works fine, there isn't same problem as you mentioned above:
but its not cropping from the top
Please check these:
1) Your webserver satisfies Toolset requirements:
https://toolset.com/toolset-requirements/
2) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/
3) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2019, and test again
4) Check if there is any PHP errors in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#php-debugging
The Crop DOES work but the crop from top does not work
here is the cropped image:
versteckter Link
orgiginal:
versteckter Link
Its from a repeatable image field and the code is
[types field='foto' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='300' height='230' crop='true' crop_horizontal='center' crop_vertical='top' index="0"][/types]
Thanks for the details, I can see the problem in my localhost, but where and how do you get the attributes "crop_horizontal" and "crop_vertical" in image field shortcode, I have tried both with UI there isn't options for attribute "crop_horizontal" and "crop_vertical", see screenshot image-crop.JPG
See our document:
https://toolset.com/documentation/customizing-sites-using-php/functions/#image
No such kinds of options )"crop_horizontal" and "crop_vertical"_ for image shortcode.
You can add a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
Our developers will evaluate it.
or is this only possible with the feautured image?
Yes, you are right, those attributes are available only for feature image, they are not available for custom image field.