New Landing How can we help? Atelier Sold Out, New, Sale badges appear then disappear in Mobile page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Atelier
  • #270272
    wunderloot
    Member
    Post count: 14

    I used this code I found in the forum to make the product badges “new”, “sale” and “sold out” appear in mobile.

    @media only screen and (max-width: 767px) {
    .woocommerce span.onsale,
    .woocommerce .wc-new-badge,
    .woocommerce .out-of-stock-badge {
    display: block;
    }
    }

    However they end up like phantoms – appearing only for a short while then disappearing. Usually they disappear as you scroll over the product (I guess the equivalent of hover on desktop)? How do I sort this out?

    Thanks!

    #270310
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    .woocommerce .products .product figure:hover .badge-wrap > span {
        opacity: 1 !important;
    }
    

    Thanks
    Mohammad

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register