Re-add cart icon to header

Solved
albertaboy
Visitor
2 0 0

Hey friends, a while back I removed the cart icon from my theme header (Ride theme).  From what I can remember, all I did was add the following code to my `theme.liquid` file: 

 

<style>
      a#cart-icon-bubble {
          display: none;
      }
</style>

 

I've since commented that code out, and it successfully re-added the cart icon (empty state). However, the cart icon now displays this error when there are product(s) in cart:
Monosnap+Sweetspot+Tennis+%E2%80%93+Sweetspot+Tennis+Club+2023-11-03+15-40-53.png
I can't figure out how to fix this. Any suggestions? TYSM! 

Accepted Solution (1)
fadi_yousif
Shopify Partner
315 40 54

This is an accepted solution.

You should create a duplicate theme or use version control before changing the code. Check if you still have icon-cart.liquid inside the snippets folder.

Freelance Shopify Developer | Helping Shopify merchants grow with high-converting online stores!
 - Did I help? Leave a tip!
 - Need my help? Chat on Telegram or WhatsApp
 - Was your question answered? Mark it as an Accepted Solution

View solution in original post

Replies 3 (3)
fadi_yousif
Shopify Partner
315 40 54

This is an accepted solution.

You should create a duplicate theme or use version control before changing the code. Check if you still have icon-cart.liquid inside the snippets folder.

Freelance Shopify Developer | Helping Shopify merchants grow with high-converting online stores!
 - Did I help? Leave a tip!
 - Need my help? Chat on Telegram or WhatsApp
 - Was your question answered? Mark it as an Accepted Solution

albertaboy
Visitor
2 0 0

Thanks Fadi! 

fadi_yousif
Shopify Partner
315 40 54

👍

Freelance Shopify Developer | Helping Shopify merchants grow with high-converting online stores!
 - Did I help? Leave a tip!
 - Need my help? Chat on Telegram or WhatsApp
 - Was your question answered? Mark it as an Accepted Solution