Answer the question
In order to leave comments, you need to log in
How to change the display of the product image in the catalog?
You need to replace the standard output of the image in the product catalog (I did it without problems for categories). In the product, I got to the bottom of get_image, then I can’t find where the output itself is in html form.
PS: As far as I understand, you need to find the product class and make changes to the method. Where can you find this goodness?
Answer the question
In order to leave comments, you need to log in
https://github.com/woocommerce/woocommerce/blob/ma...
Put this file in the woocommerce/single-product directory inside your theme, and change it so that you need
the function that is responsible for getting the image is here https://github.com/woocommerce/woocommerce/blob/15...
you can write your own based on it and insert it into your own template
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question