I have a donation section to my site that is located at root/donate/
I would like the shopping cart to not be visible on pages in that area.
I’m not sure about your question. However, if you want to hide the shopping cart button (Add to card) button in your site, you can add the following code to the functions.php file:
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); remove_action( 'woocommerce_simple_add_to_cart', 'woocommerce_simple_add_to_cart', 30 ); remove_action( 'woocommerce_grouped_add_to_cart', 'woocommerce_grouped_add_to_cart', 30 );
If it’s not your question that you mentioned here, please clarify your question and send me a screenshot for further checking.
Hope this helps !
I don’t want the Quick View/MiniCart button to appear if the page is
If you want to remove Quick View/MiniCart button in the each page, you can add the following code to the
functions.php file and find your Page ID and from back-end and Replace the
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10, ID); remove_action( 'woocommerce_after_shop_loop_item', 'dwqv_add_button', 15, ID );
Please login or Register to submit your answer