Cart button rerouting

How can I make this button on the “cart” screen link back to the main homepage?
I’m pretty sure this is the code, just not sure where to put it:

<a href=“{{ routes.root_url }}” class=“button”

Hey @shinkim1710 ,

Yes! You can modify the “Continue Shopping” button to link back to the homepage using:

Continue Shopping

Where to Place It:

  1. Find the Correct File:
  • If you’re using a Shopify Dawn (or a similar) theme, navigate to:

  • sections/main-cart.liquid

  • or templates/cart.liquid

  • If you’re unsure, check snippets/cart.liquid.

  1. Locate the Current Button
  1. Replace or Add the Code

Let me know if you need help finding the exact location in your theme!

If I was able to help you, please don’t forget to Like and mark it as the Solution!

Best Regard,
Rajat