Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Woocommerce – remove "Add to Cart" button on shop product list page

Home / Forums / Virtue Theme / Woocommerce – remove "Add to Cart" button on shop product list page

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
August 31, 2016 at 2:15 am

WP 4.6
Virtue Premium 3.8.6
Woocommerce free version

Hi

I’m trying to remove the “Add to cart” button on the Woocommerce shop summary page.
I’d like customers to click through, and read more about a single product before purchasing.

I’ve seen this code:
.product_item .add_to_cart_button, .product_item a.button {
display: none;
}

I’ve added it to the custom CSS, but it doesn’t work.

I’ve also see this code:

function remove_loop_button(){
remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 10 );
}
add_action(‘init’,’remove_loop_button’);

but can’t access the .php file from my dashboard.

I’d ideally like the “Add to Cart” button on the product summary page to say: “Read More” and the “Add to Cart” button to only be on the single product image(s).

Can you assist?

Thanks

  • The forum ‘Virtue Theme’ is closed to new topics and replies.