How to hide or remove add to cart button from wordpress store?

Remove WordPress add to cart

Mostly you may know, We can create a store in WordPress using the Woocommerce plugin functionality. so today I will discuss the important aspect of WooCommerce shop page customization, Which can help you to hide add to cart button from your store.

Step 1 : You need to go to the theme folder of your WordPress.

Step 2 : After you need to look for the function.php file in that theme folder.

Step 3 : Once you find out that file you need to put there few lines of code given below, which is also known as the WordPress hook.

 

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’);

 

Step 4 : After putting this code into the function.php file save the file and close it.

That’s it now you can check on your front end side, the add to cart button is not showing on your products pages.