Hello Or Erel,
Thanks for reaching out to us. Then you should use the hook.
Here is an example-
function wvs__archive_support(){
add_action( 'woocommerce_shop_loop_item_title', 'wvs_pro_archive_variation_template', 31 );
remove_action( 'woocommerce_after_shop_loop_item', 'wvs_pro_archive_variation_template', 30 );
}
add_action('init', 'wvs__archive_support');
Note: Above snippet will display swatches under the thumbnail and before the product title and remove swatches where it was. You should use it in your child theme’s functions.php
Thanks
Display position – shop / archive page
Or Erel
In the shop / archive page results
I see you only have 2 options to view
“Before add to cart button”
“After add to cart button”
If I want to display directly after the image or above the image?
Which code should I change in which file?