Why isn't my HTML script change affecting the 'continue shopping' redirect in Dawn theme?

Topic summary

A user is experiencing issues modifying the ‘continue shopping’ redirect URL in Shopify’s Dawn theme. Despite editing the HTML code, the changes aren’t taking effect.

Proposed Solutions:

  • One responder requested the store URL and screenshots for better diagnosis
  • Another suggested locating the cart link code and provided an example using {{ routes.all_products_collection_url }}
  • A detailed solution was offered: navigate to Admin > Online Store > Themes > Edit Code, then find the main-cart-items.liquid file in the Sections folder and modify the two instances of {{ routes.all_products_collection_url }} to the desired redirect link

Status: The discussion remains open with multiple troubleshooting approaches suggested. A screenshot reference was included in the most detailed response to guide the implementation.

Summarized with AI on November 20. AI used: claude-sonnet-4-5-20250929.

Greetings,

I need some help figuring out the url redirect when customer clicks on continue shopping from the cart. I have tried changing the HTML code in the edit code section for Dawn theme, but it is not making any difference at all. I have included a screenshot. I would be really helpful if someone can help me understand why the HTML script change is not working.

Thank you!

1 Like

@gauravt

Please share your store URL and a screenshot of what you want!

Thanks!

@gauravt hi,

Depending on your theme, search the code referring to the link on card.

This example for a return link:

{{ 'cart.general.continue_shopping' | t }}
  • I recommend placing your page address for a better understanding of your problem and proposing a solution.

Hi @gauravt

Please follow the instructions below to change the link for the continue shopping in Dawn theme.

  1. From you Admin page, go to Online store > Themes > Click the three dots on the theme you want to edit > Edit code
  2. Go to Section folder and open the main-cart-items.liquid file
  3. Find the two {{ routes.all_products_collection_url }}, and change it to the link you want

See image for reference