Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1051564
    mat_kinotek
    Participant

    hi,
    how can i style the add coupon option at check out so the field and the button are next to each other, instead of one on top of each other? Currently they are on top of each other (see screenshot). I need both of them on the same line, one next to each other. page is here: https://cherrylaser.com/shop/checkout/ (you have to add a product to see the check out)
    thanks!

    #1051930
    Prasant Rai
    Moderator

    Hello Mat,

    Thanks for writing in!

    You can add this under Custom > CSS in the Customizer:

    .woocommerce-info.x-alert.x-alert-info.x-alert-block {
        float: left;
        width: 45%;
    }
    
    form.checkout_coupon {
        float: left;
        width: 50%;
        margin-left: 15px !important;
    }

    Thanks.

    #1062286
    mat_kinotek
    Participant

    thank you,
    but that didn’t work. I need the button next to the field, same line, next to each other.
    Pleas see screenshot attached of exactly how i need it.
    Thanks!

    #1062715
    Rupok
    Member

    Hi there,

    Let’s use this :

    .woocommerce-account .checkout_coupon, .woocommerce-checkout .checkout_coupon {
      width: 100%;
    }
    
    .woocommerce_checkout_coupon .form-row.form-row-first, .woocommerce_checkout_coupon .form-row.form-row-last {
      clear: none;
      display: inline-block;
      float: left;
      margin-right: 10px;
      width: 200px;
    }
    
    .woocommerce_checkout_coupon .form-row.form-row-last .button {
      margin-top: -18px;
      padding: 8px 12px;
    }

    Hope this helps.

    Cheers!

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