Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1386440
    breepear
    Participant

    How do I align the cart totals and checkout button to the right in a two column layout? I also want the proceed to checkout button to be the same size as the others.

    #1386442
    breepear
    Participant
    This reply has been marked as private.
    #1386701
    Darshana
    Moderator

    Hi there,

    Thanks for writing in! You can add this under Custom > CSS in the Customizer.

    
    .woocommerce .cart-collaterals .cart_totals {
        float: right;
        width: 50%;
    }
    
    .checkout-button {
        float: right;
        font-size: 100%;
    }
    

    Hope that helps.

    #1387788
    breepear
    Participant

    That worked great for desktop, is there a way to still keep it full width for mobile only?

    #1388231
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    Please use use following code:

    @media only screen and (min-width: 900px) {
        .woocommerce .cart-collaterals .cart_totals {
        float: right;
        width: 50%;
    }
    
    .checkout-button {
        float: right;
        font-size: 100%;
    }
    }

    Thanks.

    #1388298
    breepear
    Participant

    That worked great, now how do I make the “proceed to checkout” button the same size as the others and make it align right.

    #1388575
    Thai
    Moderator

    Hi There,

    Please add the following CSS:

    a.checkout-button.button.alt.wc-forward {
        font-size: 100%;
        float: right;
    }

    Hope it helps 🙂

    #1398554
    breepear
    Participant

    I want to update the button layout and size on this page (see attached images as reference).

    Desktop: Update cart/apply coupon should live on the same line and span the whole container in a two column layout

    Mobile: all buttons should be full width and stacked

    #1398804
    Christopher
    Moderator

    Hi there,

    Please add following code :

    @media (min-width:767px){
    input.button[name="apply_coupon"] {
        float: left !important;
        width: 50%;
        margin-left: 0 !important;
    }
    input.button[name="update_cart"] {
        width: 49%;
    }
    }
    
    @media (max-width:767px){
    input.button[name="apply_coupon"],input.button[name="update_cart"] {
        width: 100%;
    
    }
    }

    Hope it helps.

    #1399492
    breepear
    Participant

    That worked great for the “Update cart/apply coupon” buttons, but how can I get the “Proceed to checkout” button to span the whole column on both desktop and mobile?

    #1399687
    Joao
    Moderator

    Hi There,

    Please add the following code to Appereance Customizer Custom CSS

    a.checkout-button.button.alt.wc-forward {
    
        width: 100%;
    }

    Hope it helps

    Joao

  • <script> jQuery(function($){ $("#no-reply-1386440 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>