remove 'Return To Shop' link on cart?
-
Dear WooCommerce team et al,
Is there a way to completely disable (remove) the Return To Shop button link that shows up in the empty cart template linked below?
https://github.com/woothemes/woocommerce/blob/master/templates/cart/cart-empty.php
While I’ve come across many methods of changing the text and/or hyperlink that the
woocommerce_return_to_shop_redirect
filter calls, there doesn’t seem to be any successful attempt at removing the link completely from showing up, i.e. the below suggestions don’t seem to work at all:remove_filter( 'woocommerce_cart_is_empty', 'woocommerce_return_to_shop_redirect', 10 ); remove_filter( 'woocommerce_cart_is_empty', 'woocommerce_return_to_shop_redirect', 10, 0 ); remove_filter( 'woocommerce_cart_is_empty', 'woocommerce_return_to_shop_redirect', 10, 1 ); remove_filter( 'woocommerce_return_to_shop_redirect', 'filter_woocommerce_return_to_shop_redirect', 10 ); remove_filter( 'woocommerce_return_to_shop_redirect', 'filter_woocommerce_return_to_shop_redirect', 10, 0 ); remove_filter( 'woocommerce_return_to_shop_redirect', 'filter_woocommerce_return_to_shop_redirect', 10, 1 ); remove_action( 'woocommerce_cart_is_empty', 'action_woocommerce_cart_is_empty', 10 ); remove_action( 'woocommerce_cart_is_empty', 'action_woocommerce_cart_is_empty', 10, 0 ); remove_action( 'woocommerce_cart_is_empty', 'action_woocommerce_cart_is_empty', 10, 1 );
I’m sure there is some combination that works properly perhaps with a different priority value or etc? Any advice much appreciated. Cheers!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘remove 'Return To Shop' link on cart?’ is closed to new replies.