All things Shopify and commerce
Hi, I would like to link the continue shopping button in the cart back to the home page instead of the products page in the Minimal theme. From previous posts I've got as far as finding some code in cart-template.liquid which looks like this.
<p class="cart__continue-btn">{{ 'cart.general.continue_browsing_html' | t: link: routes.all_products_collection_url }}</p>
{% endif %}
but it looks very different to others that have been mentioned. No coding experience so advice on how to edit this gratefully received!
Thanks.
Solved! Go to the solution
This is an accepted solution.
Hi, @Barbara16!
I'm Miles from the Social Care team at Shopify. I'll be happy to help you redirect your continue shopping button to "home" instead of product pages.
Go into your Shopify Admin and then click on Online Store > Themes and click on the “…” in the top right, and then click on edit code. Now click on cart.liquid (you might need to go further if noted like it might say you need to go to “/sections/cart-template.liquid”) and then look for the “continue_shopping” code. If you're having trouble finding it, you can hit CTRL + F or CMD + F if you're on a Mac and type in "continue" to find the code.
The piece you want to change is the "href = " part. You will want to delete everything between the quotation marks except for " /". I took a screenshot here so you can see what it will look like!
If you're still having issues, please let me know!
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hi, @Barbara16!
I'm Miles from the Social Care team at Shopify. I'll be happy to help you redirect your continue shopping button to "home" instead of product pages.
Go into your Shopify Admin and then click on Online Store > Themes and click on the “…” in the top right, and then click on edit code. Now click on cart.liquid (you might need to go further if noted like it might say you need to go to “/sections/cart-template.liquid”) and then look for the “continue_shopping” code. If you're having trouble finding it, you can hit CTRL + F or CMD + F if you're on a Mac and type in "continue" to find the code.
The piece you want to change is the "href = " part. You will want to delete everything between the quotation marks except for " /". I took a screenshot here so you can see what it will look like!
If you're still having issues, please let me know!
To learn more visit the Shopify Help Center or the Community Blog.
I have the Turbo theme and in the cart-template.liquid it looks totally different with no href='/'...how can I change the URL destination in this theme?...any help would be much appreciated.
Hi Miles, How would I do it on Craft theme? Thanks
Ricardo
Hardcoding is not the right way to redirect, you should change the href to {{routes.root_url}}.
Hope that helps
I found this excellent video to walk you through this! I do not know code but this was easy and I have the Dawn Theme: https://youtu.be/oe9sPkUkQog?si=3NJ8BFUR76VmBL6E
Hello
I have Monaco theme. Can you tell me please if this is correct?
Old theme version
New version
{% comment %}
<a
href="{{ https://fermary.com/collections/jars-of-fermented-vegetables }}"
class="cart-drawer__continue link-hover-arrow"
>
{{ 'general.continue_shopping' | t }}
</a>
{% endcomment %}
where can I get the equivalent code to what they have for my specific collection?
So instead of this routes.all_products_collection_url I want a specific collection to show
Also following the steps you gave does not take me to the home page {% comment %}
<a
href="/"
class="cart-drawer__continue link-hover-arrow"
>
{{ 'general.continue_shopping' | t }}
</a>
{% endcomment %}
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025