[Resolved] Chnage margin-top when product is on sale

Home Forums Support [Resolved] Chnage margin-top when product is on sale

Home Forums Support Chnage margin-top when product is on sale

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1575887
    nik9

    Hello,

    Is there a way to adjust the…

    .woocommerce ul.products li.product a.button {
        margin-top: -10px;
    }

    to this below but only when a product is on sale?

    .woocommerce ul.products li.product a.button {
        margin-top: -15px;
    }

    Cheers

    #1575999
    David
    Staff
    Customer Support

    Hi there,

    sale products are given a class of sale so you can do this:

    .woocommerce ul.products li.product.sale a.button {
        margin-top: -15px;
    }
    #1576033
    nik9

    Oh, that was simple. I didn’t saw that! Thanks David! 🙂

    #1576147
    David
    Staff
    Customer Support

    You’re welcome!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.