Site logo

[Resolved] How to Change WooCommerce Buy Button Background & Text Color?

Home Forums Support [Resolved] How to Change WooCommerce Buy Button Background & Text Color?

Home Forums Support How to Change WooCommerce Buy Button Background & Text Color?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2102235
    Georgi

    Hello,

    First I searched in the customizer but I didn’t find such options. I searched the forum also but I didn’t find a thread about this.

    How can the background and text of the Buy Button/Select Options/Read More be changed? https://prnt.sc/26n8n1c

    Thank you in advance!

    #2102241
    Elvin
    Staff
    Customer Support

    Hi Georgi,

    All woocommerce related buttons use this CSS:

    .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
        color: #fff;
        background-color: #55555e;
    }

    You can use this CSS to override the default. Change the color values to your preference. 😀

    #2102456
    Georgi

    Thanks man, it works great!

    I also wanted to customize the add to cart button and found the following CSS in the forum:

    .woocommerce a.button.add_to_cart_button {
        padding: 5px 10px;
        border-radius: 5px;
    }

    It does a really great job but it’s not affecting the button for out of stock products https://prnt.sc/26ncdab and the button on the product page itself https://prnt.sc/26ncdsv

    Can the CSS be adjusted to affect these two things as well?

    #2102530
    David
    Staff
    Customer Support

    Hi there,

    can you share a link to your site where i can see the sales products.

    #2102569
    Georgi

    Of course. Link in the private area. There is no cache now so it might be a bit slower.

    #2102602
    David
    Staff
    Customer Support

    OK so replace both your CSS snippets with:

    .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
        color: #fff;
        background-color: #55555e;
        padding: 5px 10px;
        border-radius: 5px;
    }
    #2102680
    Georgi

    Hehe, awesome! Thank you, David! 🙂

    #2102689
    David
    Staff
    Customer Support

    Glad we could be of help

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