Archived topic
Remove "View Cart" after I press "Add to cart"
5 replies · Started by Jerry on November 22, 2020
Hi guys, after I press "add to cart" on the shop page, a new "link" text appears (View Cart) next to the Add to Cart button.
How do I disable that "View Cart" part?
Thank you!
Hi,
This functionality is hardcoded (js) within WooCommerce.
While we can't completely remove it from the DOM structure as that will require editing of plugin files, we can remove it from display by adding this CSS:
a.added_to_cart.wc-forward {
display: none;
}
Here's how to add CSS. https://docs.generatepress.com/article/adding-css/
Worked great, thank you!
Nice one. No problem. :)
does it work if i paste it at my GP customizing css?
Hi there,
you can add it to the Customizer > Additional CSS.