Reply 267271 to: How to change the default "Return to Shop" Links to Homepage?

Avatar: Olga Barlow
Olga Barlow
Support staff
January 8, 2021 at 10:31

Hello,

You’ll lose changes you make in the parent theme after theme update. If you need to change any functions from the parent theme use child theme.
So, you need to copy
xstore/woocommerce/cart/cart-empty.php to xstore-child/woocommerce/cart/cart-empty.php,
xstore/woocommerce/cart/cart.php to xstore-child/woocommerce/cart/cart.php,
xstore/woocommerce/loop/no-products-found.php to xstore-child/woocommerce/loop/no-products-found.php and replace Return To Shop with link you need https://developer.wordpress.org/reference/functions/home_url/ .

Regards

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.