- This topic has 2 replies, 2 voices, and was last updated 7 years, 8 months ago by Freefly.
- AuthorPosts
- October 14, 2016 at 3:21 pm #807FreeflyParticipant
Hello,
I have the problem, that product images are always cropped to an 1:1 ratio. Disabling the hard crop setting in woocommerce is not possible. After saving the new setting and refreshing the page the hard cropping is enabled again.
In another post it was explained that “the setting in the woocommerce for the image crop won’t work because we have overlapped the setting with our code.” (reply #318)
Is there a way to change this setting as I need to have the product images displayed in their original picture ratio. I really like your Square theme and would appreciate a solution that works with the theme.
Thank you.
Freefly
October 15, 2016 at 4:54 pm #816HashKeymasterHi,
You need to modify the code in order for the settings to work. You need to remove some code from inc/woo-functions.php file
Remove the code
add_action( ‘init’, ‘sq_update_woo_thumbnail’);
in the line number 96Check this file for reference.
Once you remove the code, the settings for the woocommerce cropping will work. But please make sure your use proper image size else it may break the design.
October 16, 2016 at 4:09 am #820FreeflyParticipantGreat. Removing the code just did the trick. Thank you very much. Really appreciate the quick support.
- AuthorPosts
- You must be logged in to reply to this topic.