Hi, the link for continue shopping in cart currently links to the collections page and I want it to redirect to the homepage? I checked other posts but can’t find the right code for this theme. Thanks
Link is www.lvere.co.uk password is candlesub
Hey @nlhill1990 ,
You can change the “Continue Shopping” link in your cart by updating the cart.liquid (or sometimes main-cart-footer.liquid or cart-template.liquid) file in your theme.
Here’s what you can do:
-
From your Shopify admin, go to Online Store > Themes > Actions > Edit code.
-
Open the file where the “Continue Shopping” link is rendered (often inside Sections > main-cart-footer.liquid or Templates > cart.liquid, depending on your theme).
-
Look for something like this:
Continue Shopping
- Replace it with this to link to your homepage instead:
Continue Shopping
- Save the file and refresh your cart page to test it.
Hi @nlhill1990
- From your Shopify admin, go to Online Store > Themes.
- Find the theme that you want to edit, click the … button to open the actions menu, and then click Edit code.
- Open the file snippets/cart-drawer.liquid and find the following snippets:
{{ 'general.continue_shopping' | t }}
And replace it with the following:
{{ 'general.continue_shopping' | t }}
- Open the file sections/main-cart-items.liquid and find the following snippets:
{{- 'general.continue_shopping' | t -}}
Replace it with:
{{- 'general.continue_shopping' | t -}}
And find the following in the same file:
{{ 'general.continue_shopping' | t }}
Replace it with:
{{ 'general.continue_shopping' | t }}
Please let me know if you have any concern.
Cheers!
This worked - thank you so much!
this hasn’t helped me unfortunately. Also, I don’t see any differences in the new codes vs the existing codes in the theme.