Home › Forums › WoodMart support forum › Disable add to cart buttons
Disable add to cart buttons
- This topic has 5 replies, 2 voices, and was last updated 3 years ago by
Luke Nielsen.
-
AuthorPosts
-
September 8, 2022 at 12:47 pm #402281
[email protected]ParticipantHi! I added the CSS code:
.product-grid-item .wd-product-cats a, .product-grid-item .wd-product-brands-links a {
display: none;
}.wd-hover-quick .wd-add-btn>a {
display: none;
}.product-grid-item .wd-add-btn-replace .add-to-cart-loop:before {
content: ” “;
}.product-grid-item .wd-add-btn-replace .add-to-cart-loop:hover span {
transform: unset;
}but it seems like it doesn’t work because I can still see the add to cart buttons and hovers. I want to disable it.
Attachments:
You must be logged in to view attached files.September 8, 2022 at 3:38 pm #402316
Luke NielsenKeymasterHello,
The below code will help you to disable the “Add to cart” button, enter it into the “Global Custom CSS” area that is in Theme Settings -> Custom CSS.
.product-grid-item .wd-add-btn { display: none; }
Please let me know if you have any further questions in the meantime.
Kind Regards
September 8, 2022 at 3:57 pm #402327
[email protected]ParticipantThank you! Is it also possible to center ”related products” and change the font-size?
Attachments:
You must be logged in to view attached files.September 9, 2022 at 10:03 am #402463
Luke NielsenKeymasterHello,
The “Related products” section is already in the center.
Here is a code for changing the font size of the related products on the single product, paste it into the “Custom CSS for desktop” area in Theme Settings -> Custom CSS.
.single-product .slider-type-product .product-grid-item .wd-entities-title { font-size: 18px; }
Kind Regards
September 9, 2022 at 10:09 am #402466
[email protected]ParticipantHi,
See attachment. I want it like the example (text in the middle).
Attachments:
You must be logged in to view attached files.September 9, 2022 at 2:31 pm #402506
Luke NielsenKeymasterHello,
In this case, try to use the below code. Paste it into the “Custom CSS for desktop” area.
.single-product .related-products .slider-title { text-align: center; } .single-product .related-products .slider-title:before { left: 50%; transform: translate( -50%, -50%); }
If you would like to discuss the issue further, our customer support team is here for you.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register