Home › Forums › WoodMart support forum › Remove add to cart in products archive
Remove add to cart in products archive
- This topic has 2 replies, 2 voices, and was last updated 3 hours, 55 minutes ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
August 10, 2025 at 4:11 pm #678977
DELAYONParticipantHello,
We are having issues customizing the product grid display in Woodmart.
Main problem:
We want the “Add to cart” / “Select options” button hidden only on the shop/archive pages, but still visible on single product pages. Currently, when we hide it via CSS or template edits, it also disappears from single product pages, or the opposite — it remains visible everywhere.
Wehre currently working with the css below:
@media (max-width: 768px) {
/* attribute-labels mobil ausblenden */
.product-grid-item .product-labels .attribute-label {
display: none !important;
}/* featured mobil ausblenden */
.product-grid-item .product-labels .featured {
display: none !important;
}/* Titel, Bewertung, Preis, Swatches jeweils eigene Reihe */
.product-grid-item .product-title,
.product-grid-item .star-rating,
.product-grid-item .price,
.product-grid-item .swatches {
display: block;
margin-bottom: 8px;
}/* Swatches auf 5 Stück begrenzen */
.product-grid-item .swatches > *:nth-child(n+6) {
display: none;
}/* Plus-Button als interaktives Element */
.product-grid-item .swatches::after {
content: “+”;
display: inline-block;
font-weight: bold;
margin-left: 5px;
cursor: pointer;
user-select: none;
}.product-grid-item .swatches::after:hover {
color: #0073e6;
}
}/* Add to Cart Button nur auf Shop/Kategorie-Seiten ausblenden */
.post-type-archive .add_to_cart_button,
.post-type-archive .product-grid-item .button,
.post-type-archive .wd-add-btn {
display: none !important;
visibility: hidden !important;
pointer-events: none !important;
}Thank you,
August 10, 2025 at 4:57 pm #678980
DELAYONParticipantThe other elements are not displayed properly as well. We already tried working the template without success. Only the product labels are displayed according to css
August 11, 2025 at 12:33 pm #679148
Aizaz Imtiaz AwanKeymasterHello,
If you want to hide the add to cart button only on archive products, enter it into the “Global Custom CSS” area in Theme Settings -> Custom CSS. The code below will help you to hide the “Add to cart” button on the archive page.
.product-grid-item .wd-add-btn { display: none !important; }
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register