How to edit a button for variable product on shop page?

This topic has 2 replies, 2 voices, and was last updated 6 years, 1 months ago ago by Rose Tyler

  • Avatar: murmoon
    murmoon
    Participant
    March 7, 2018 at 07:47

    Hi.
    To edit “add to cart” button for simple product on shop page, I use this CSS:
    .add_to_cart_button {
    color: white;
    background-color: green;
    border-color: green;
    border-radius: 4px 4px 4px 4px !important;

    }

    What CSS should I use to make button for variable product look same like add to cart button for sipmle procucts?

    Please see screenshot:
    https://www.dropbox.com/s/s6b0g3vpemrmyj3/%D0%A1%D0%BA%D1%80%D0%B8%D0%BD%D1%88%D0%BE%D1%82%202018-03-07%2014.14.29.png?dl=0

    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 7, 2018 at 08:44

    Hello,

    You can add this code in custom css:

    .btn.product_type_variable {
        color: white;
        background-color: green;
        border-color: green;
        border-radius: 4px 4px 4px 4px !important;
    }

    https://prnt.sc/iny1fd

    Regards

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.