Hide Add to cart button on simple products
-
Hello,
Previously I posted thread regarding hide price and add to cart button on the site, so you given me the custom css code below, but it is working only variable products. when i add simple product, the “add to cart” button is showing on the page. Please provide me with the same css code for simple products also
.price {
display: none !important;
}
.product-grid-item .wd-add-btn {
display: none;
}
.woocommerce-variation-add-to-cart {
display: none !important;
}
Hello,
Try to add the following custom css code in Theme Settings > Custom CSS:
/* Hide price for all products */
.price {
display: none !important;
}
.product-grid-item .wd-add-btn,
.product-type-simple .wd-add-btn,
.product-type-simple .single_add_to_cart_button {
display: none !important;
}
/* Hide Add to Cart button for variable products */
.woocommerce-variation-add-to-cart {
display: none !important;
}
Best Regards,
Add to cart button hidden on single product page but qty input is still showing
pls check in image
Attachments:
You must be
logged in to view attached files.
Hello,
If you also want to hide the quantity input field on simple products, please add the following CSS as well:
.product-type-simple .quantity {
display: none !important;
}
Best Regards,
Hello,
You’re Most Welcome!
Feel free to write back anytime. If you need further assistance, we are always here to help you.
If you have a minute, we’d truly appreciate your feedback — it helps us improve the product and shape future updates more effectively. We’d love your feedback on our theme: https://tally.so/r/w4l54k
Thanks for contacting us.
Have a great day.
Topic Closed.
Best Regards.
The topic ‘Hide Add to cart button on simple products’ is closed to new replies.