If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #16984

    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.





    Just add this on your custom.css

    .woocommerce-cart #top .button {
    display: none!important;




    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?




    The code above should work, I’m sure of it. Please remove browser history and try again.




    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.




    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>


    <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.




    Nick –

    Thank you! The first bit of code worked. So glad, since that was the easier way. I appreciate your help.


Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Getting rid of Return to Shop button’ is closed to new replies.