Home › Forums › WoodMart support forum › How to remove product image from cart dropdown › Reply To: How to remove product image from cart dropdown
March 23, 2020 at 11:11 am
#181654
Aizaz Imtiaz Awan
Keymaster
Hello,
I saw the videos you attached.
1) To remove the images on the mini cart you need to add the following Custom CSS code in the Global Custom CSS area under Theme Settings >> Custom CSS.
.woocommerce-mini-cart-item.mini_cart_item .cart-item-image {
display: none;
}
2) To change the icon of the add to cart button you need to add the following Custom CSS code in the Global Custom CSS area under Theme Settings Custom CSS.
.wd-add-btn-replace .add-to-cart-loop::before {
content: "\f120";
}
You can change the content according to your requirements.
3) To remove the link of the product on the mini cart item you need to add the following JS code in the Global Custom JS area Under Theme Settings >> Custom JS.
(function($) {
$(document).ready(function(){
$( "li.woocommerce-mini-cart-item > a" ).removeAttr("href");
});
})( jQuery );
Best Regards.