On the Woocommere cart page there is a button that links back to your shop home after you have added a product to the cart. If you want to change where this button links to you can add the following code to your functions.php file.

You just need to replace http://mydomain.com/url with the url you want the button to go to.

// Changes link destination of 'Continue Shopping' button on cart page

add_filter( 'woocommerce_continue_shopping_redirect', 'my_custom_continue_redirect' );

function my_custom_continue_redirect( $url ) {
return 'http://mydomain.com/url';

Thanks to Roy from Woocommerce for this handy tip.


  1. Anni on 18 February 2014 at 1:34 am

    Where and how do I exactly find the functions.pho file for WooCommerce? I find a functions file for my theme under the Appearance panel, but not for WooCommerce.

    • Julian on 26 February 2014 at 6:38 pm

      Hi Anni, you just add this to the functions.php file in your theme, best not to edit Woocommerce files directly as they may get overwritten in an update.

  2. PAOLO on 31 March 2014 at 5:39 pm

    The world needs more people like you

  3. Dipie on 14 May 2014 at 6:36 am

    Thanks Julian. it worked perfectly.

  4. הבלוג שלי on 14 September 2014 at 6:34 am

    I relish, lead to I discovered exactly what I was looking for.

    You have ended my 4 day lengthy hunt! God Bless you man. Have a great day.

Leave a Comment