i want to disable click our product image on archives product page. so, user only can click from the button.

enter image description here

2 Answers 2


In your functions.php

remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 );
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5 );
  • i still can click that, i meant in archives product not single product. Aug 27, 2018 at 10:24
cursor: default !important;
pointer-events: none !important;
  • Could you please edit your answer using the edit link above and add a description of what this is? What it does? Why it's needed? Where to add it? And how it answers the question.
    – Howdy_McGee
    Aug 27, 2018 at 15:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.