How to Remove Cart Icon from Header Shopify

Learn how to remove cart icon from header Shopify using CSS, Liquid, or theme settings. Streamline your store design and improve UX with our expert guide.

15 min
How to Remove Cart Icon from Header Shopify

Table of Contents

  1. Introduction
  2. Understanding Your Goal: Why Remove the Cart Icon?
  3. The Foundations: What to Check Before You Make Changes
  4. Method 1: Using the Shopify Theme Editor (The No-Code Way)
  5. Method 2: Using CSS to Hide the Cart Icon (The Non-Destructive Way)
  6. Method 3: Editing Liquid Files (The Advanced Way)
  7. Risk and Integrity: The Implications of a Hidden Cart
  8. Optimizing With Intention: The Role of Cart Tools
  9. Measuring the Impact on Your Store Performance
  10. When to Bring in Professional Help
  11. Conclusion
  12. FAQ

Introduction

Have you ever visited a high-end digital lookbook or a luxury furniture showroom online and noticed something missing? Often, these sites don't have a prominent "Add to Cart" button or a cart icon floating in the header. Instead, they focus entirely on the visual experience, inviting you to "Inquire for Pricing" or "Book a Consultation." For many Shopify merchants, the traditional e-commerce "buy now" flow isn't the right fit for their business model. You might be building a catalog-only site, a wholesale portal that requires a login, or a "coming soon" page for a major brand launch. In these cases, that little shopping bag or trolley icon in the top right corner can actually become a source of friction, distracting users from the primary action you want them to take.

This guide is designed for Shopify merchants—from new entrepreneurs setting up their first niche store to established DTC brands moving toward a "drop" model—who need to streamline their header by removing the cart icon. We will explore several ways to achieve this, ranging from simple theme settings to precise code edits.

At Cartly Pro, we believe that every element of your store should serve a specific purpose. We advocate for an "Optimize with Intention" approach. This means we don't just recommend adding or removing features because they look good; we encourage you to look at the foundations of your business first, clarify your goals, check for potential risks to the customer experience, implement the most effective solution, and then reassess based on real data. By the end of this article, you will have a clear decision path for managing your header navigation while maintaining a high-trust shopping environment.

Understanding Your Goal: Why Remove the Cart Icon?

Before you open your theme editor, it is vital to identify the "why" behind this change. Removing a core navigation element like the cart icon is a significant move in the world of e-commerce. It changes the fundamental way a visitor interacts with your site.

Here are a few practical scenarios where removing the cart icon makes sense:

  • The Digital Showroom: You sell high-ticket items, custom-made goods, or industrial equipment where a standard checkout doesn't apply. Your goal is lead generation, not an immediate transaction.
  • The Membership or Wholesale Portal: You want to hide the shopping experience from the general public. Visitors should only see the cart once they have logged into a specific customer account.
  • The "Coming Soon" or Teaser Phase: You are building hype for a product launch. You want people to browse your collections and sign up for an email list, but you aren't ready to accept orders yet.
  • The Single-Product Landing Page: If you are running a highly focused campaign where the checkout happens on a specific landing page or via a direct-to-checkout link, a site-wide cart icon might just clutter the mobile UX.

If your goal is simply to "clean up the design" but you still want people to buy products, removing the cart icon might actually hurt your conversion rate. Shoppers expect a way to review their selections. If you find that your current cart icon is ugly or poorly placed, the answer might not be removal, but rather optimization through a better cart drawer or a more modern header layout.

Key Takeaway: Identify if you are removing the cart to change your business model (e.g., moving to "Quote Only") or if you are trying to solve a design frustration. If it's the latter, consider if an optimized cart experience would serve you better than a total removal.

The Foundations: What to Check Before You Make Changes

In our "Optimize with Intention" framework, apps and code edits are not the starting line. Before you touch your header, you must ensure your store's foundations are solid.

1. Verify Product-Market Fit and Offer Clarity

If you are removing the cart because sales are low and you want to try a different "vibe," take a step back. Is your offer clear? Is your shipping policy transparent? Sometimes a cluttered header is a symptom of a larger design issue, but it is rarely the primary reason a store fails to convert. Ensure your product descriptions and images are doing the heavy lifting first.

2. Back Up Your Theme

Any time you edit your Shopify theme code, there is a risk of breaking something.

  • Go to Online Store > Themes.
  • Click the three dots (...) next to your active theme.
  • Select Duplicate.
  • Work on the duplicate theme first to ensure the cart icon is removed without affecting the rest of the header's alignment.

3. Consider the Mobile UX

On mobile devices, screen real estate is incredibly limited. Removing the cart icon can free up space, but it can also make the header look "lopsided" if other icons (like the search or menu burger) aren't re-centered. Always test your changes on a physical mobile device, not just the desktop preview.

4. Check for App Overlap

If you are using a cart drawer app or a specialized checkout tool, these apps often "inject" their own code or icons into your header. Simply hiding the Shopify default icon might not be enough if a third-party app is still trying to display its own version. If you need help checking app embeds, the Help Center is a good place to start.

Method 1: Using the Shopify Theme Editor (The No-Code Way)

Many modern Shopify themes (especially those built on Online Store 2.0, like Dawn, Sense, or Refresh) offer some level of header customization. While most do not have a single "Hide Cart" checkbox (because Shopify is, at its core, a shopping platform), you can often achieve the look you want by adjusting blocks.

Step-by-Step for OS 2.0 Themes:

  1. In your Shopify Admin, go to Online Store > Themes.
  2. Click Customize on your active theme.
  3. In the left-hand sidebar, look for the Header section.
  4. Check the settings within the Header. Some premium themes allow you to toggle the visibility of header icons.
  5. If you cannot find a toggle, check the App Embeds tab on the far left. If a third-party app is providing your cart icon, you can often disable it there without touching any code. For examples of how other stores handled similar changes, browse our case studies.

If your theme doesn't provide a native setting to hide the cart, you will need to move to a more technical approach.

Method 2: Using CSS to Hide the Cart Icon (The Non-Destructive Way)

Using CSS (Cascading Style Sheets) is often the safest way to remove the cart icon. This method doesn't actually delete the code; it just tells the browser not to display that specific element. This is "non-destructive" because you can easily reverse it by deleting the line of CSS.

How to Apply CSS:

  1. Go to Online Store > Themes > Edit Code.
  2. Look for your CSS file. Depending on your theme, this is usually named base.css, theme.css, or global.css (located in the Assets folder).
  3. Scroll to the very bottom of the file.
  4. You need to target the cart icon's "class." In many Shopify themes, this is .header__icon--cart or #cart-icon-bubble.
  5. Add the following code:
.header__icon--cart, #cart-icon-bubble {
  display: none !important;
}
  1. Save and preview your store.

What to do next:

  • Check your site on mobile and desktop.
  • Ensure that no "ghost" space is left behind where the icon used to be.
  • If the icon is still there, you may need to "Inspect" your header in a browser to find the exact class name used by your specific theme.

Caution: If you are not confident navigating your theme's CSS file, we recommend working with a Shopify developer. Even a small typo in a CSS file can sometimes cause layout issues across your entire site. A polished implementation like the one in our Lace Lab case study can be a useful reference.

Method 3: Editing Liquid Files (The Advanced Way)

If you want a "cleaner" removal where the code isn't even loaded by the browser, you can edit the Liquid files directly. This is the "Advanced" way. Instead of just hiding the icon, you are effectively removing the link from the header structure.

Finding the Right File:

Shopify themes are modular. The code for your cart icon is usually located in one of two places:

  • sections/header.liquid
  • snippets/header-icons.liquid (or a similar name like header-cart-icon.liquid)

The "Comment Out" Strategy:

Rather than deleting code, we always recommend "commenting it out." This wraps the code in a tag that tells Shopify to ignore it, but keeps it there for you to find later if you change your mind.

  1. In the header.liquid or snippet file, search (Ctrl+F or Cmd+F) for the word cart.
  2. Look for an anchor tag <a> that links to routes.cart_url or /cart.
  3. Wrap that entire block of code in {% comment %} and {% endcomment %} tags.

Example:

{% comment %}
  <a href="{{ routes.cart_url }}" class="header__icon">
    {% render 'icon-cart' %}
  </a>
{% endcomment %}
  1. Save your changes.

This method is highly effective because it prevents the cart icon from rendering at all, which can slightly improve page load speed by reducing the number of elements the browser has to process.

Risk and Integrity: The Implications of a Hidden Cart

Before you commit to these changes, we must address the "Integrity Check" part of our philosophy. Removing the cart icon isn't just a visual change; it's a functional one.

The "Zombie Cart" Problem

If you remove the cart icon but keep the "Add to Cart" buttons on your product pages, you create a "Zombie Cart." A customer might click "Add to Cart," see a small animation or notification, but then have no way to actually view their items or proceed to checkout. This is a major "dark pattern" that destroys customer trust.

If you remove the cart icon, you must also:

  • Hide or disable the "Add to Cart" buttons on all product pages.
  • Disable "Quick View" buttons that allow adding to cart.
  • Ensure that any "Buy Now" buttons (which bypass the cart and go straight to checkout) are either clearly labeled or also removed if you aren't selling anything.

Accessibility and Compliance

For some regions, consumer law requires that pricing and the ability to review a "basket" remain transparent. If you are a wholesale business, this is less of a concern, but for a public-facing B2C store, removing the cart can make your site less accessible to users who rely on standard navigation patterns. For broader trust-focused improvements, see our guide on building trust in your Shopify store.

SEO and Navigation

Search engines look for standard navigational links to understand the structure of an e-commerce site. Removing the cart link from the header won't necessarily tank your SEO, but you should ensure that your site map remains clear and that your primary navigation (Collections, About, Contact) is robust enough to guide users.

Optimizing With Intention: The Role of Cart Tools

Sometimes, a merchant wants to remove the cart icon because the default Shopify cart experience feels "clunky" or "ugly." If that is the case, the problem isn't the icon itself—it's the friction in the journey.

What Cart Optimization Tools Can Do:

  • Reduce Friction: A well-designed cart drawer (like what we aim for at Cartly Pro) allows customers to see their items without leaving the current page. This keeps them in the "shopping mindset."
  • Increase Clarity: Progress bars for free shipping or clear discount displays help shoppers feel confident about their purchase.
  • Support Relevant Upsells: Instead of a generic "You might also like" section, an optimized cart can show helpful, relevant add-ons that actually improve the customer's experience.
  • Improve Mobile UX: A drawer that slides out smoothly is often much more user-friendly than a dedicated "Cart Page" that requires a full page reload on a slow mobile connection.

What They Cannot Do:

  • Replace Product-Market Fit: If your product isn't what the customer wants, a fancy cart won't save the sale. A thoughtful last-minute offers strategy can help, but it cannot fix a weak offer.
  • Fix Poor Traffic Quality: If you are driving the wrong people to your site, no amount of header optimization will lead to conversions. Free shipping threshold tests can improve AOV, but only when the traffic is relevant.
  • Guarantee Revenue Lifts: While optimization often improves metrics, results are always dependent on your specific niche, margins, and customer base. If you want to go deeper on merchandising, our guide on upselling vs cross-selling is a helpful companion.

Decision Point: If you are removing the icon because you want a more minimalist look, have you considered a "minimalist cart" instead? A simple, clean icon that opens a sleek drawer might give you the aesthetic you want without sacrificing the functionality your customers expect.

Measuring the Impact on Your Store Performance

Optimization is an iterative process. Once you remove the cart icon (and presumably disable your "Add to Cart" buttons), you must monitor how this changes your store's performance. Since you are likely moving away from a traditional conversion model, your "success metrics" will shift. If you're refining the broader customer journey, our guide to engaging customers with your Shopify store is a useful next read.

What to Track (In Plain English):

  • Conversion Rate: If you moved to a "Request a Quote" model, track how many people submit the quote form vs. how many used to buy through the cart.
  • Bounce Rate: Are people leaving the site immediately because they are confused by the lack of a cart?
  • Customer Inquiries: Are you getting more emails asking "How do I buy this?" This is a sign that your new flow isn't clear enough.
  • Revenue Per Visitor (RPV): If you are a high-ticket brand, you might see fewer transactions but a much higher RPV if your new "consultation-first" model leads to larger custom orders.

The "One Change at a Time" Rule:

Don't redesign your entire header, change your pricing, and swap your theme all in one day. If you remove the cart icon, wait at least 7–14 days (depending on your traffic) to see how users react. Use a tool like Shopify's native analytics or a heat-mapping tool to see where users are clicking when they can't find the cart.

When to Bring in Professional Help

While hiding an icon via CSS is relatively straightforward, some situations require a professional touch. Don't be afraid to reach out to a Shopify Expert or a developer if you encounter the following:

1. Theme Conflicts and "Sticky" Icons

Some premium themes have very complex JavaScript that controls the header. You might hide the icon with CSS, but a "sticky" version of the header might pop up when you scroll, bringing the icon back. A developer can help you find and disable the logic behind this.

2. Custom Code and Performance

If your theme's header.liquid is already heavily customized, adding or removing code might break other features like the mobile menu or the search bar. If your site speed drops significantly after an edit, you likely have a "loop" or a broken script that needs fixing.

3. Payments and Security

If you are modifying the checkout flow (the "Why" behind removing the cart), never attempt to modify the secure checkout pages yourself. For issues involving payments, fraud prevention, or account security, always contact Shopify Support and your payment provider. If you want to learn more about our approach, visit our About Us.

4. Legal and Compliance

If you are unsure whether your "Catalog Only" model meets local consumer transparency laws (especially regarding pricing display in the EU or UK), consult a legal professional or a compliance specialist.

Conclusion

Removing the cart icon from your Shopify header is a powerful way to transform your store from a standard "shop" into a specialized brand experience, a wholesale portal, or a digital gallery. However, this change should never be made on a whim.

To recap the "Optimize with Intention" journey:

  • Foundations first: Ensure your backup is ready and your overall site design is clean.
  • Clarify the goal: Are you moving to a quote-based model, or just hiding a clunky icon?
  • Risk & Integrity check: Avoid the "Zombie Cart." If you hide the icon, make sure you hide the "Add to Cart" buttons too.
  • Optimize with intention: Use the simplest method possible (CSS or Liquid) to achieve the look you want.
  • Reassess and refine: Watch your analytics. If customers are confused, be ready to pivot or try a sleek cart drawer instead.

"The best Shopify stores aren't the ones with the most features; they are the ones where every element has a job to do. If the cart icon isn't doing its job for your business model, don't be afraid to let it go—just make sure you're replacing it with a better journey for your customers."

By following the steps in this guide, you can confidently customize your Shopify header to match your unique brand strategy. Whether you choose the simplicity of CSS or the cleanliness of Liquid edits, remember that the goal is always to reduce friction and build trust with your visitors. If you're ready to test a more conversion-friendly experience, you can install Cartly from the Shopify App Store.

FAQ

How do I remove the cart icon on mobile only?

To remove the cart icon only on mobile devices, you can wrap your CSS in a "media query." This tells the browser to only apply the "display: none" rule if the screen is smaller than a certain width (usually 768px). In your base.css file, you would add:

@media screen and (max-width: 767px) {
  .header__icon--cart, #cart-icon-bubble {
    display: none !important;
  }
}

This allows your desktop users to shop normally while keeping the mobile header clean for browsing.

Will removing the cart icon slow down my site?

If you use the "Liquid" method (Method 3) to comment out the code, it can actually slightly improve your site speed because the browser has one less element and one less link to load. If you use the CSS method (Method 2), the impact is negligible; the code still "loads," it just isn't visible. In general, removing small header icons will not have a noticeable impact on your Shopify speed scores compared to large images or heavy third-party apps.

Can I hide the cart icon only for specific products or collections?

This is more complex. Because the header is a "static" section that appears on every page, hiding the icon based on which product is being viewed requires custom Liquid logic. You would need to add a conditional statement in your header.liquid file that checks the template or collection name. For example: {% unless template contains 'product' %} ...cart code... {% endunless %}. This is a situation where we recommend hiring a Shopify developer to ensure the logic doesn't break on other pages.

Does hiding the cart icon affect my ability to use Cartly Pro?

Cartly Pro is designed to optimize the cart experience. If you have completely hidden the cart icon and disabled all "Add to Cart" functionality because you are a "Catalog Only" store, you wouldn't need a cart optimization app. However, if you are simply looking for a better way to show the cart (like a sleek, high-performing drawer that only appears when needed), Cartly Pro can replace your theme's default cart icon and drawer with a much more conversion-friendly version. You can hide the theme's default icon and let the app's optimized version take its place, or try Cartly on the Shopify App Store.