Home Forums WoodMart support forum Hide Add to cart button on simple products

Hide Add to cart button on simple products

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #697002

    htashrif52
    Participant

    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;
    }

    #697069

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    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,

    #697243

    htashrif52
    Participant

    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.
    #697254

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    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,

    #697267

    htashrif52
    Participant

    thanks

    #697338

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    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.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Hide Add to cart button on simple products’ is closed to new replies.