Brooklyn Theme - Need to change "Continue shopping here" destination

Solved
stevefar
New Member
2 0 1

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!

Accepted Solution (1)

Accepted Solutions
Hilary
Community Moderator
533 77 100

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:

25-03-46342-45528

 

Let us know how this goes!

Hilary | Community Moderator @ 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

View solution in original post

Replies 4 (4)
Hilary
Community Moderator
533 77 100

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:

25-03-46342-45528

 

Let us know how this goes!

Hilary | Community Moderator @ 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

View solution in original post

PaulNewton
Shopify Partner
3419 224 657

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: &lt;a href=&quot;/&quot;&gt;Continue shopping&lt;/a&gt;

Join the discussion - What was learned this Black Friday?


Answers powered by coffee Buy Paul a ☕ Coffee for more answers or donate to eff.org

Problem Solved? ✔Accept and Like solutions to help future merchants

Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com
stevefar
New Member
2 0 1

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!

Hilary
Community Moderator
533 77 100

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 Moderator @ 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