• Resolved feijon

    (@feijon)


    I’ve been looking for a PHP code for more than 01 year to crop only the main image of the Woocommerce Store, because my website defaults to all square photos in size 700 x 700 px. However, as I intend to authorize the seller to advertise, I need a PHP code to cut the main image when I click on “Publish” the product, and it needs to be cut square. If anyone can send me this code I would appreciate it, thank you very much.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Roxy

    (@roxannestoltz)

    Hi @feijon ,

    Thanks for reaching out!

    As I understand, you would like to change the default size of the main product images (currently 700 x 700 px) to a different size, is this correct?

    By default, WooCommerce lets you resize the product images on Single Product and Shop pages from?Appearance > Customize > WooCommerce > Product Images, as seen in the screenshot below:

    Kindly note that custom code is beyond the scope of support we are able to provide here, however, there is a snippet that allows you to configure image settings automatically. Feel free to check this out here.

    On the other hand, if we misinterpret your concern in any way, please can you provide more information, as well as a screenshot of the images you would like to resize (as well as the size you would like them to default to).

    Looking forward to your response!

    Thread Starter feijon

    (@feijon)

    Hi @roxannestoltz

    Thanks for the answer, I will check and apply on my site.

    Thank you very much.

    • This reply was modified 2 years, 1 month ago by feijon.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Crop main image of woocommerce store’ is closed to new replies.