• I’m trying to remove the “Return to Shop” button in wp when cart is empty. I know that the file “cart-empty.php” in the path plugins/woocommerce/templates/cart is responsible for the button and its link. Removing the whole line in the mentioned file will do the trick, but upon updating the woocommerce plugin, the line will be restored. I want to know if I can add css codes so that it hides the button.

    The code responsible for the button in cart-empty.php is as follows:

    <p class="return-to-shop"><a class="button wc-backward" href="<?php echo apply_filters( 'woocommerce_return_to_shop_redirect', get_permalink( wc_get_page_id( 'shop' ) ) ); ?>"><?php _e( 'Return To Shop', 'woocommerce' ) ?></a></p>

    Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to remove Return to Shop button’ is closed to new replies.