Move the Buy Now button to the same row as the Add to Cart button

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

  • Avatar: Jason
    Jason
    Participant
    June 2, 2022 at 01:52

    Hi there, is that possible I move the Buy Now button to the same row as the Add to Cart button on the WooCommerce product page for saving more space?

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 2, 2022 at 07:12

    Hello,

    Disable this option https://prnt.sc/FcLVNFvST1Ov and use the next custom CSS code:

    .single-product-builder .single_add_to_cart_button ~ .et-or-wrapper {
        flex-basis: 10%;
        margin-left: 10px;
        margin-right: 10px;
    }
    .single-product-builder form.cart {
        display: flex;
    }
    .single-product-builder .et_product-block .et-single-buy-now.single_add_to_cart_button.button {
        width: 20%;
        flex-basis: 20%;
        min-width: 20%;
    }

    Regards

    Avatar: Jason
    Jason
    Participant
    June 2, 2022 at 08:35

    Hi there,

    I used this custom CSS code and it shows that the Buy Now button is too narrow. Then I adjust the Min Width of Add to Cart button in Single Product Builder, it automatically adjusts the width of the two buttons to each other, looks normal.
    But actually, the Buy Now button is never change, it’s still too narrow. How to fix this issue to adjust the width of both button?

    Regards

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 2, 2022 at 14:56

    Hello,

    Please add this code also:

    .single-product-builder form.cart .woocommerce-variation-add-to-cart {
        width: 100%;
    }

    Regards

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

The issue related to '‘Move the Buy Now button to the same row as the Add to Cart button’' has been successfully resolved, and the topic is now closed for further responses

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