Remove the “Add to Cart” button from the store
-
Hello,
How can I remove the add-to-cart button from the general grid view on the homepage and store pages? Does the theme have an option for this feature?
The code you previously shared on the forum gives an error when added to the functions file.
Code:
.woodmart-add-btn {
display: none;
}
Error message:
syntax error, unexpected ‘.’, expecting end of file
Hi Ecommerce,
Thanks for reaching to us.
Please add the below Custom CSS code to Theme Settings > Custom CSS > Global Custom CSS:
.wd-product.wd-hover-buttons-on-hover div.product-wrapper {
overflow: visible;
}
.wd-product.wd-hover-buttons-on-hover .wd-add-btn {
display: none;
}
Regards,
I get this error when I try to add the code and save it.
**”Your PHP code changes were not applied due to line 101 in the file wp-content/themes/woodmart-child/functions.php. Please fix it and try saving again.
Syntax error: unexpected ‘.’, expecting end of file.”**
Okay, it’s done. Thanks, I was mistakenly trying to add it to the function.
Hi Ecommerce,
Glad to hear your issue has been resolved. Keep us in mind for future questions and concerns, we’re always here to help!
Regards,
The topic ‘Remove the “Add to Cart” button from the store’ is closed to new replies.