I've been trying to disable the single product page for specific categories in my website with no luck.
I've tried a lot of codes provided in previous topics with no results. I think this is due because I'm not using the default theme but Betheme.
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 );
Alternatively I used pointer-events: none which worked on desktop but not on mobile (touch-action: none didn't do the trick either)
Link to the shop:
https://granitosdebrasil.com.ar/categoria/granito/
My Answer:
you please provide more context or clarify your question?
Rate this post
5 of 5 based on 3821 votesComments