[Support request] Change color of ad to cart only

Home Forums Support [Support request] Change color of ad to cart only

Home Forums Support Change color of ad to cart only

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #430322
    Edwin

    Can you tell me if you know the CSS to change the background-color for “add to cart only?”

    Thanks

    Edwin

    #430377
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Try this:

    .woocommerce a.button.add_to_cart_button {
        background-color: #222;
    }
    #430388
    Edwin

    Thanks Tom

    That worked. What about rollover. I tried this:

    .woocommerce a.button.add_to_cart_button a:hover{
    background-color: #ccccccc!important;
    }

    #430400
    Leo
    Staff
    Customer Support

    Hmm this should work:

    .woocommerce a.button.add_to_cart_button:hover {
        background-color: #ffffff;
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.