How can I completely remove the cart icon and button?

Topic summary

  • Main issue: completely removing the cart icon and its clickable button area in a Shopify theme. The icon can be hidden, but the header cart area remains clickable.

  • Current status: The shared page link shows no visible cart icon, yet the click target is still present and active.

  • Proposed action: Add custom code to theme.liquid (the main layout file in Shopify themes) above . Navigation steps were provided: Online Store > Themes > More Actions > Edit code > theme.liquid.

  • Missing detail: The actual code snippet was not included in the post, so there is no concrete change to apply.

  • Outcome: No confirmed resolution. Without the specific CSS/JS or markup change, the cart button/link remains functional.

  • Next steps: Provide the complete code snippet or guidance that disables/removes the cart link element (not just its icon), so the clickable area is fully removed. The discussion is open/ongoing.

Summarized with AI on January 15. AI used: gpt-5.

Hi, can anyone help me removing the cart icon and button? I can only remove the icon, but the area is still pressable:

https://745469-2.myshopify.com/pages/contact

Thank you!

Hi,

Did you manage to solve it, as I can’t see it in the link you sent

@Natasha-Saed no, only the icon is not there, it is still clickable

Hi @Daniel19901

This is Noah from PageFly - Shopify Page Builder App

Please add this code to your theme.liquid above the to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the


Hope this can help you solve the issue

Best regards,

Noah | PageFly