Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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.

    http://www.pizzazzgifts.com

    Sandy

    #93781

    Hello,

    Just add this on your custom.css

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

    Regards,

    Ismael

    #93782

    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

    #93783

    Hi,

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

    Regards,

    Ismael

    #93784

    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

    #93785

    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

    #93786

    Nick -

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

    Sandy

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

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