Shopify themes, liquid, logos, and UX
Hi,
I'd like to change the link on my cart page that says "Continue shopping here"
I would like the link to go to a collections page I created with Zipify pages, or just remove the word "here" and the link altogether.
I believe the code I need to edit is in my cart.liquid file:
<p class="cart--continue-browsing">{{ 'cart.general.continue_browsing_html' | t: link: routes.all_products_collection_url }}</p>
I've worked with Shopify Support to find a solution on this, but they weren't able to help me. Can anyone point me in the right direction?
Thanks!
Solved! Go to the solution
This is an accepted solution.
Hi, @stevefar
While coding support is outside my scope of support, I do have a suggestion here for you that I thought I'd mention.
You are able edit this specific link and text through the language editor. Here are the steps to do that:
1. Login to your Shopify Admin.
2. Head to Online Store >Themes.
3. Next to your current theme (Brooklyn), Click Actions > Edit languages.
4. Toggle to the Cart section.
5. Scroll down until you find the Continue browsing html text box.
6. Edit the link and text as desired, and click Save.
Here's a screenshot of the Continue browsing html text box in the language editor in Brooklyn:
Let us know how this goes!
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hi, @stevefar
While coding support is outside my scope of support, I do have a suggestion here for you that I thought I'd mention.
You are able edit this specific link and text through the language editor. Here are the steps to do that:
1. Login to your Shopify Admin.
2. Head to Online Store >Themes.
3. Next to your current theme (Brooklyn), Click Actions > Edit languages.
4. Toggle to the Cart section.
5. Scroll down until you find the Continue browsing html text box.
6. Edit the link and text as desired, and click Save.
Here's a screenshot of the Continue browsing html text box in the language editor in Brooklyn:
Let us know how this goes!
To learn more visit the Shopify Help Center or the Community Blog.
Future readers note in some themes the localization logic is the opposite where the destination url is in a containing <a> tag.
So it will look like the following code
<a href="{{ routes.all_products_collection_url }}" class="text-link text-link--accent">
{{ 'cart.general.continue_shopping' | t }}
</a>
Which means you cannot change the url through editing the translation value alone and will have to go into the relevant cart template files.
Technical - because that would be trying to render a <a> link inside another <a> link which is invalid html , and this can create theme issues if it somehow renders unencoded i.e. not: <a href="/">Continue shopping</a>
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Thank you! I had looked at that section before and tried to replace the word "link" with my desired link, which wasn't working.
I just deleted everything after Continue browsing, and it removed the word and link altogether. That works for me!
Ah great news. Glad you managed to figure it out, nice work!
Thanks for updating the topic as solved for the benefit of others.
Thanks to @PaulNewton for the extra context for others users and themes as well!
To learn more visit the Shopify Help Center or the Community Blog.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024