If you want to get rid of the shopping cart icon in WooCommerce, there are a few ways you can do it. One way is to simply hide the icon using CSS.
Another way is to remove the cart completely from your WooCommerce store.
If you want to hide the shopping cart icon, you can do it with CSS. All you need to do is add the following code to your theme’s stylesheet:
PRO TIP: If you are using WooCommerce to sell products on your website, you may want to remove the shopping cart icon from the header of your site. This can be done by going to the WooCommerce settings page and selecting the “Disable Cart” option. However, doing this will also disable the ability to add items to the cart, so customers will not be able to purchase any products from your site.
.cart-contents, .cart-contents:hover {
display: none;
}
This will hide the shopping cart icon from your store. If you want to remove the cart completely, you can do it with a few lines of PHP code. Add the following code to your theme’s functions.php file:
// Remove cart link from header
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
// Remove cart link from footer
remove_action( 'woocommerce_after_shop_loop', 'woocommerce_result_count', 10 );
remove_action( 'woocommerce_after_shop_loop', 'woocommerce_catalog_ordering', 20 );
// Remove add to cart button from product loop
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop _add _to _cart');
// Remove cross sell display
remove action( 'WooCommerce after checkout billing','WooCommerce cross sell display');
// Disable stock management (hide low stock / out of stock messages) add filter( ‘manage _stock’, ‘__return _false’ ); WooCommerce disable add to cart add filter ( ‘ WooCommerce _is _purchasable’ , ‘__return _false’);
This will remove the cart link from the header and footer, as well as the add to cart button from the product loop. It will also disable stock management and hide low stock / out of stock messages. If you want to keep the stock management functionality, you can remove the last line of code.
Conclusion:
There are a few different ways that you can get rid of the shopping cart icon in WooCommerce. You can either hide it using CSS or remove it completely using PHP code.
7 Related Question Answers Found
The shopping cart feature in WooCommerce is a great way to keep track of your items and ensure that you don’t forget anything when you’re ready to check out. But sometimes, you may want to disable the shopping cart feature on your site. Whether you’re running a sale or just don’t want people to be able to purchase items from your site, there are a few ways to disable the shopping cart feature in WooCommerce.
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.
If you’re running a WooCommerce store, you’ve probably noticed that the shopping cart icon in the header is a little..basic. Well, never fear! It’s actually quite easy to change the shopping cart icon in WooCommerce, and in this article, we’ll show you how.
If you’re running a WooCommerce store, you might want to remove the “Add to Cart” button on certain products. For example, you might be selling an event ticket where people need to register first, or a service that can’t be purchased online. In this article, we’ll show you how to remove the Add to Cart button in WooCommerce.
It’s no secret that WooCommerce is one of the most popular eCommerce platforms on the web. And one of the things that makes it so popular is its flexibility. You can customize just about anything in WooCommerce, including the “Update Cart” button.
The WooCommerce shopping cart is the heart of your online store. When a customer adds items to their cart, they are taken to the cart page to finalize their purchase. The problem is, sometimes you don’t want customers to have to go through the cart page.
The WooCommerce cart page is the page where customers can view their shopping cart and checkout. This page is important for eCommerce stores, as it allows customers to view their shopping cart and checkout. However, some store owners may want to disable the WooCommerce cart page.