Answer the question
In order to leave comments, you need to log in
How to remove add to cart button in Woocommerce custom theme?
Hello, friends.
With php Pts bad sign, tell me please in solving a simple problem.
I'm using a custom theme. There is a /wp-content/themes/hestia-mebel/inc/compatibility/woocommerce/functions.php
file in the theme directory
with the following content
<div class="stats">
<?php hestia_add_to_cart(); ?>
</div>
Answer the question
In order to leave comments, you need to log in
Hello!
https://www.cloudways.com/blog/how-to-remove-hide-...
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart');
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question