Title: remove cart when empty
Last modified: August 31, 2016

---

# remove cart when empty

 *  [sarahtodoroff](https://wordpress.org/support/users/sarahtodoroff/)
 * (@sarahtodoroff)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/remove-cart-when-empty/)
 * I am trying to remove the shopping cart when empty from the menu bar…any ideas?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [James Koster](https://wordpress.org/support/users/jameskoster/)
 * (@jameskoster)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/remove-cart-when-empty/#post-7075673)
 * The easiest way would be to plug the `storefront_header_cart()` function to include
   a check of the WooCommerce cart quantity before returning.
 * [https://github.com/woothemes/storefront/blob/master/inc/woocommerce/storefront-woocommerce-template-functions.php#L102](https://github.com/woothemes/storefront/blob/master/inc/woocommerce/storefront-woocommerce-template-functions.php#L102)

Viewing 1 replies (of 1 total)

The topic ‘remove cart when empty’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/storefront/4.6.2/screenshot.png)
 * Storefront
 * [Support Threads](https://wordpress.org/support/theme/storefront/)
 * [Active Topics](https://wordpress.org/support/theme/storefront/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/storefront/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/storefront/reviews/)

## Tags

 * [empty cart](https://wordpress.org/support/topic-tag/empty-cart/)

 * 1 reply
 * 2 participants
 * Last reply from: [James Koster](https://wordpress.org/support/users/jameskoster/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/remove-cart-when-empty/#post-7075673)
 * Status: not resolved