FunnelKit
FunnelKit Documentation
Get unstuck with our helpful reference material

Hide the Cart Count When the Item Count is Zero

In this documentation, we will show how to hide the cart count when the cart is empty using a simple CSS snippet.

By default, FunnelKit Cart displays a cart count of zero when no items are added to the cart, as shown below. 

preview zero count

Steps To Follow To Hide The Cart Count When The Cart Item Is Zero 

  1. Navigate to FunnelKit ⇒ Cart and move to the Styling tab.
navigate to FunnelKit styling
  1. Next, scroll to the Custom CSS section and add the following code. 
div#fkit-floating-count[data-item-count="0"], #fkcart-mini-toggler .fkcart-shortcode-count.fkcart-item-count[data-item-count="0"] { display: none; }
add custom code to funnelkit cart
  1. Make sure to hit Save to update

Now, if you check the front end, the cart count will be hidden when there are no items in the cart.

Hide the Cart Count When the Item Count is Zero

But if you add any product to your cart, then the cart count will show up. 

funnelkit cart item count
Ready to Transform Your Store?
Join 39,415+ successful store owners who trust FunnelKit to power their businesses.
Conversion Optimized Checkout Pages
Increase Revenue with Smart Upsells
Capture Emails & Recover Abandoned Carts
Automate Winbacks & Repeat Sales
941+ 5 star reviews on WordPress.org
Transform your store to power your business with FunnelKit
🚀 Maximize Your Profit with FunnelKit – Highest Rated with 941+ 5-Star Reviews
Get Started