How do I remove the shopping cart Icon? I just want it to say BAG

Topic summary

A user wants to remove the shopping cart icon from their Shopify store header while keeping the text “BAG” visible. The issue affects both desktop and mobile views.

Solutions Provided:

  • Multiple community members suggested adding CSS code to base.css or theme.liquid files
  • The CSS targets .site-header__cart-icon svg with display: none !important
  • For mobile view, a media query targeting @media only screen and (max-width: 767px) was recommended

Current Status:

  • The desktop solution initially worked for the user
  • Mobile view implementation remains problematic - the icon still appears despite applying suggested CSS fixes
  • Multiple CSS variations were attempted without success on mobile
  • The conversation appears ongoing, with the user indicating they will email for further assistance

The discussion includes code snippets and screenshots demonstrating the issue, though the mobile view problem remains unresolved.

Summarized with AI on November 23. AI used: claude-sonnet-4-5-20250929.

@GemPages @PageFly-Kate

@AbdulShakir

send preview link

https://abdulshakir.myshopify.com/

1 Like

@AbdulShakir

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset > theme.scss and paste this at the bottom of the file:
.top-bar svg.icon.icon-cart {
    display: none;
}

Hallo @AbdulShakir

You can add code by following these steps to change

  1. Go to Online Store → Theme → Edit code > assets > base.css

paste below code at bottom(base.css)

a.site-header__cart svg {
display: none !important;
}

If you require any further information, feel free to contact me.

Best regards,

@AbdulShakir

thanks for link bt i can’t see know this icon i hope do you have fix!

let me know if you need more help

Thank you that worked but it only shows it on desktop view how can I get it to show on mobile view as well?

Hi @AbdulShakir ,

Glad to support you today.

You can check out my suggestion below to get your concern resolved:

  1. Go to Edit code on Online Store:

  1. add my code above the tag on Theme.liquid:

Eg:

I hope you find the answer helpful.

Kind & Best regards,
GemPages Support Team.

Hallo @AbdulShakir

mobile view

You can add code by following these steps to change

  1. Go to Online Store → Theme → Edit code > assets > base.css

paste below code at bottom(base.css)

@media only screen and (max-width: 767px) {
a.site-header__cart svg {
display: none !important;
}
}

If you require any further information, feel free to contact me.

Best regards,

It still doesn’t show

@AbdulShakir

To remove it, remove all the CSS you have applied so far. And apply this CSS.

@media only screen and (max-width: 767px) {
a.site-header__cart svg {
display: none !important;
}
}

It did not work

…

I’m going to email you