Hello -
I'm trying to get rid of the Return to Shop button on my cart page. The regular text says shopping cart is empty and below that is the Return to Shop button. That is what I would like to be rid of.
Sandy
Hello -
I'm trying to get rid of the Return to Shop button on my cart page. The regular text says shopping cart is empty and below that is the Return to Shop button. That is what I would like to be rid of.
Sandy
Hello,
Just add this on your custom.css
.woocommerce-cart #top .button {
display: none!important;
}
Regards,
Ismael
Ismael -
Thanks, but that did not work. I probably need to be clearer also. The button is on http://pizzazzgifts.com/cart
Below the text "Your cart is currently empty."
Can we try again?
Sandy
Hi,
The code above should work, I'm sure of it. Please remove browser history and try again.
Regards,
Ismael
I waited to address this again because other issues were making my cart not work and I wanted to work on those issues first. All of that seems to be cleared up now. I have cleared browser history and tried re-doing the code you gave me in my custom.css and it still does not work. Please look at it again. I appreciate all your help so much.
Sandy
Hi,
Please try this:
#top.woocommerce-cart .button {
display: none;
}
Otherwise please open up the woo commerce plugin and in directory /templates/cart/ please find empty.php file. Make a backup of this file in case of a problem, and then replace line 15 which looks like
<p><a class="button" href="<?php echo get_permalink(woocommerce_get_page_id('shop')); ?>"><?php _e('← Return To Shop', 'woocommerce') ?></a></p>
with
<p> </p>
Please remember that the next time you update the plugin, this fix will be overwritten, so make sure you have documented what was done.
Thanks,
Nick
Nick -
Thank you! The first bit of code worked. So glad, since that was the easier way. I appreciate your help.
Sandy
This topic has been closed to new replies.