i want to disable click our product image on archives product page. so, user only can click from the button.
2 Answers
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. Commented 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 ♦Commented Aug 27, 2018 at 15:08