skip to Main Content

Hy,

I want to delete HTML br tag from Woocommerce form-checkout. I want to do this so that the text "Ship to a different address?" can go up beside the check-box.
I don’t know how to do this .

enter image description here

2

Answers


  1. using jQuery

    $('.input-checkbox').next().remove();
    
    Login or Signup to reply.
  2. You don’t need to use JS for this. You can simply hide br tag using CSS.

    .woocommerce-shipping-fields .input-checkbox ~ br {
        display: none;
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search