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
2305 835 908

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 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

BSSCommerce-HDL
Shopify Partner
2305 835 908

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 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Abdosamer
Shopify Partner
1040 188 225

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
2305 835 908

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 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 10 (10)

Abdosamer
Shopify Partner
1040 188 225

@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
1040 188 225

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
2305 835 908

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 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

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
2305 835 908

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 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

alant
Excursionist
27 1 16

Worked! Amazing, thank you!

BSSCommerce-HDL
Shopify Partner
2305 835 908

@alant, No problem. Have a good day 😁

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

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
2305 835 908

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 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now