Website Building » WooCommerce » How Do I Remove the Cart Icon in WooCommerce?

How Do I Remove the Cart Icon in WooCommerce?

Last updated on October 1, 2022 @ 7:32 pm

If you’re running a WooCommerce store, you might want to remove the cart icon from the header. There are a few reasons why you might want to do this:

Maybe you don’t want to encourage customers to add items to their cart until they’re ready to checkout. Or, maybe you’re running a membership site and don’t want members to be able to add items to their cart.

Whatever the reason, removing the cart icon is easy to do with a few lines of code. Here’s how:

1. Log into your WordPress site and go to Appearance > Editor. On the right hand side, you’ll see a list of files that make up your theme.

Find and click on header.php.

2. Once you’re in header.php, look for the line of code that says . This is the code that displays the cart icon.

3. Delete that line of code and click “Update File”. That’s it! The cart icon will no longer appear in your header.

There are a few other places where the cart icon might appear on your site, such as in the sidebar or footer. To remove it from those areas, you’ll need to edit those files as well.

PRO TIP: If you are using WooCommerce to sell products on your WordPress site, you may want to remove the cart icon from the header. This can be done by going to the WooCommerce settings page and selecting the “Disable Cart” checkbox. However, doing this will also disable the ability to add items to the cart, so customers will not be able to purchase anything from your store.

Conclusion:

Removing the cart icon from your WooCommerce store is easy to do with just a few lines of code. Simply edit your header file and delete the line of code that displays the cart icon.

Madison Geldart

Madison Geldart

Cloud infrastructure engineer and tech mess solver.