I have a category image which is displayed upright on the home page (the original dimensions are 1600 x 2133 pixels). This is ok. My question is, how can HivePress say that the image is cropped from the top for the category view?
The image is cropped to 1600x800 pixels, but the center part of the image is the focus. But I want the focus to be on top.
In the WordPress settings I have already set under Media for the “Landscape (large)”. Format that the cropping should happen “Top & Center”. What also happens, however, the category image is a completely different format which does not appear in WordPress.
thank you for your answer. A new image size does not really help me. My problem is that the coverimage which is cropped to 1600x800px is cropping from the center. I just want the 800 px to be cropped from the top.
So the top 800pixels of the image should remain.
Under themes/listinghive/includes/configs/image-sizes.php I can only set if a crop should take place or not.
In the backend of Wordpress the “cover_large” is not selectable so that I could set here that the crop should take place from above as with the other formats.
Yes, it’s possible to adjust the cropping position, but this requires a code snippet for the hivetheme/v1/image_sizes It accepts the same parameters as the add_image_size() | Function | WordPress Developer Resources function/ This cropping parameter also accepts positions like ['center', 'top'].
I am trying to use the documentation that you are referring to, but since I am not a developer, I would appreciate your assistance. I want to choose a cropping position for a category image (instead of center). I want it to be different on desktop and mobile. Please provide a sample code that I can use it.