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!
Hilary | Community Manager @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify 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!
Hilary | Community Manager @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify 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>
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!
Hilary | Community Manager @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
User | RANK |
---|---|
62 | |
52 | |
47 | |
39 | |
38 |
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023