Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing or hiding WooCommerce "Return to Shop" button from 'empty cart' page?

I've been trying to remove the "Return to Shop" button from the WooCommerce 'empty cart' page, but without much luck. Closest I've found is the snippet below from 2015, which did work for someone back in the day, but doesn't work for me now. Does anyone know why, or have a better way?

.empty-cart-block .button.active {
display:none !important;
}
like image 466
darkcaldera Avatar asked Oct 25 '25 21:10

darkcaldera


1 Answers

Just use this simple line of CSS code:

.woocommerce-cart .return-to-shop { display: none !important; };

Code goes in styles.css file of your active child theme (or active theme). Tested and works.

like image 135
LoicTheAztec Avatar answered Oct 28 '25 10:10

LoicTheAztec



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!