Site logo

[Resolved] Niche – Hide add to cart on hover if a product is sold out

Home Forums Support [Resolved] Niche – Hide add to cart on hover if a product is sold out

Home Forums Support Niche – Hide add to cart on hover if a product is sold out

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

    Hello there,

    In niche we found out that if a product is sold out, that the hover “add to cart” stills shows up. After click on “add to cart” we single product pages opens. Is there a way to hide “add to cart” hover on product which are sold out?

    Cheers

    #1391988
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    .post-type-archive-product .outofstock a.button {
        display: none;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #1392467
    nik9

    Hi Leo,

    Perfect! 🙂

    Thanks.

    #1393084
    Leo
    Staff
    Customer Support

    No problem 🙂

    #1569030
    Diane

    this works in the main page but not in the product category page.
    i want it to not show on all pages. how do i do that?

    #1569154
    David
    Staff
    Customer Support

    Hi there,

    try:

    .outofstock a.button {
        display: none;
    }
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.