We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Remove or hide cart icon on new horizon theme

Solved

Remove or hide cart icon on new horizon theme

hannaheire
Tourist
3 1 1

Struggling to work out how to hide the cart icon from header on new horizon theme. Have tried all the usual suspects:

#cart-icon-bubble { display: none; }
or

.header .header__icons .header__icon--account, .header .header__icons .header__icon--cart{ display: none; }

 

but no luck. Anyone have any thoughts?

Accepted Solution (1)
hannaheire
Tourist
3 1 1

This is an accepted solution.

Thanks a million, Tim. Worked a treat. 

View solution in original post

Replies 7 (7)

Shadab_dev
Shopify Partner
1583 83 173

so inside your base.css file at the very bottom add this

 

cart-icon{
display: none;
}

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
hannaheire
Tourist
3 1 1

Thanks so much for the reply @Shadab_dev - it doesn't look to be working with this added code.
Any other thoughts?

Screenshot 2025-06-21 at 14.04.10.png

Shadab_dev
Shopify Partner
1583 83 173

Strange, it worked on my development store for horizon. 

 

Please share your store url.

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.

Mustafa_Ali
Trailblazer
523 51 101

hey @hannaheire share the URLs of your website plz

"Need a Shopify Specialist"?Chat on WhatsApp
Or email at: mustafaalideveloper001@gmail.com
"If my solution was helpful, mark it as a solution and hit the like button! And wait don't forget to"

EmbedAny
New Member
9 0 0

I get your frustration! Sometimes themes like New Horizon have specific classes or IDs that differ slightly from the usual, and the cart icon might be controlled by JavaScript or an additional class that overrides standard CSS.

Here are a few things you can try:

1. Inspect and Find the Correct Selector:

First, right-click on the cart icon in the browser, and click Inspect (or press Ctrl + Shift + I on Windows, Cmd + Option + I on Mac). This opens the developer tools where you can inspect the HTML and see the classes/IDs associated with the cart icon.

Look for something like this:

<div class="header__icons">
   <div class="header__icon header__icon--cart">
      <!-- Cart icon here -->
   </div>
</div>

2. Target Specific Classes:

If you’ve found the cart icon’s class, use that exact class to hide it. For example, try this:

/* Hide cart icon specifically */
.header__icon--cart {
  display: none !important;
}

Adding !important ensures that no other conflicting styles override your changes.

3. Target via JavaScript:

Sometimes themes use JavaScript to dynamically display elements, so you might need to hide the cart icon through JS. Here’s a small snippet to add in your theme's custom JavaScript section or theme.js file:

document.addEventListener('DOMContentLoaded', function() {
  var cartIcon = document.querySelector('.header__icon--cart');
  if (cartIcon) {
    cartIcon.style.display = 'none';
  }
});

This script waits for the page to load, then hides the cart icon by targeting the class.

4. Check for Conditional Rendering:

The cart icon might be conditionally rendered based on whether there are items in the cart. In that case, look for conditional Liquid code in the theme’s header file (header.liquid) like:

{% if cart.item_count > 0 %}
   <!-- Show cart icon -->
{% else %}
   <!-- Hide cart icon -->
{% endif %}

If that’s the case, you may need to adjust the condition or simply remove the entire section from the header.

5. Customizing in Theme Editor:

Finally, some Shopify themes, like New Horizon, let you toggle cart visibility directly through the Theme Editor:

  1. Go to Online Store > Themes > Customize.

  2. Open the Header section.

  3. Check if there’s an option to disable the cart icon. Some themes have settings that control this directly.

Try these steps and let me know if any of them work! If not, share what you find in the Inspect tool, and we can dive deeper into it.

Embed 800+ widgets on Shopify with just a link. EmbedAny on App Store.

tim
Shopify Partner
4812 598 1733

Try this code in Theme Settings=> Custom CSS:

cart-drawer-component.cart-drawer {
  display: none;
}
If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
hannaheire
Tourist
3 1 1

This is an accepted solution.

Thanks a million, Tim. Worked a treat.