change cart icon and quantity bauble to text

Solved

change cart icon and quantity bauble to text

alant
Excursionist
27 1 16

Hello,

 

Could anyone support with the following please - I would like to change cart icon and quantity bauble to text so it will show as for example CART (1). I would like it to be changed for both desktop and mobile. I would appreciate if anyone could help!

 

My store: https://iivq075qsobcx70p-78805696849.shopifypreview.com

Accepted Solutions (4)

BSSCommerce-HDL
Shopify Partner
1928 674 802

This is an accepted solution.

Hi @alant, You can try following steps. Remember to backup your theme before. 

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file header.liquid

Step 3: Edit the code according to the following sample:

BSSCommerceHDL_0-1723989410130.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

View solution in original post

BSSCommerce-HDL
Shopify Partner
1928 674 802

This is an accepted solution.

Hi @alant

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
a#cart-icon-bubble {
    width: auto !important;
    text-decoration: none !important;
}
</style>

Here is result:

BSSCommerceHDL_0-1723991124737.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

View solution in original post

Abdosamer
Shopify Partner
894 163 181

This is an accepted solution.

@alant , To change the cart go to icon-cart-bubble.liquid , replace the whole code with this :

<span class="">{{ 'templates.cart.cart' | t }}</span>
{%- if cart != empty -%}
  <div class="">
    {%- if cart.item_count < 100 -%}
      <span aria-hidden="true">({{ cart.item_count }})</span>
    {%- endif -%}
    <span class="visually-hidden">{{ 'sections.header.cart_count' | t: count: cart.item_count }}</span>
  </div>
{%- endif -%}

 

Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work

View solution in original post

BSSCommerce-HDL
Shopify Partner
1928 674 802

This is an accepted solution.

Hi @alant

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file cart-icon-bubble.liquid

Step 3: Edit the code according to the following sample:

BSSCommerceHDL_0-1723993732463.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

View solution in original post

Replies 10 (10)

Abdosamer
Shopify Partner
894 163 181

@alant , we will need to edit the header.liquid file , go to that file and search for this : header__icon , then send a screenshot of the result so I can tell you what to change

Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work
alant
Excursionist
27 1 16

Hi there,

 

Thanks for that! Please see the screenshoot attached.Screenshot 2024-08-18 at 14.25.11.png

Abdosamer
Shopify Partner
894 163 181

This is an accepted solution.

@alant , To change the cart go to icon-cart-bubble.liquid , replace the whole code with this :

<span class="">{{ 'templates.cart.cart' | t }}</span>
{%- if cart != empty -%}
  <div class="">
    {%- if cart.item_count < 100 -%}
      <span aria-hidden="true">({{ cart.item_count }})</span>
    {%- endif -%}
    <span class="visually-hidden">{{ 'sections.header.cart_count' | t: count: cart.item_count }}</span>
  </div>
{%- endif -%}

 

Buy me a Coffee
Email : abdelrahamansamer71@gmail.com
Chat on WhatsApp
My work

BSSCommerce-HDL
Shopify Partner
1928 674 802

This is an accepted solution.

Hi @alant, You can try following steps. Remember to backup your theme before. 

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file header.liquid

Step 3: Edit the code according to the following sample:

BSSCommerceHDL_0-1723989410130.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
alant
Excursionist
27 1 16

Thanks! That almost worked - is it a way for everything to be in one line and without the underline? Screenshot 2024-08-18 at 15.14.48.png

BSSCommerce-HDL
Shopify Partner
1928 674 802

This is an accepted solution.

Hi @alant

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
a#cart-icon-bubble {
    width: auto !important;
    text-decoration: none !important;
}
</style>

Here is result:

BSSCommerceHDL_0-1723991124737.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
alant
Excursionist
27 1 16

Worked! Amazing, thank you!

BSSCommerce-HDL
Shopify Partner
1928 674 802

@alant, No problem. Have a good day 😁

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency
alant
Excursionist
27 1 16

Can I just check - when I add a thing to the basket the icon changes to the bag instead of word CART. Could you support please?Screenshot 2024-08-18 at 15.36.37.png 

BSSCommerce-HDL
Shopify Partner
1928 674 802

This is an accepted solution.

Hi @alant

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file cart-icon-bubble.liquid

Step 3: Edit the code according to the following sample:

BSSCommerceHDL_0-1723993732463.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here .


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency