Created
July 18, 2025 08:23
-
-
Save tdmrhn/c9c034ba9835476849ee1f5734e1306d to your computer and use it in GitHub Desktop.
WooCommerce Reorder checkout fields with CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .woocommerce-billing-fields__field-wrapper { | |
| display: grid; | |
| grid-template-columns: repeat(2, 1fr); | |
| row-gap: 1em; | |
| column-gap: 1em; | |
| } | |
| .woocommerce-billing-fields__field-wrapper > .form-row { | |
| width: auto; | |
| } | |
| #billing_email_field { order: 1; } | |
| #billing_phone_field { order: 2; } | |
| #billing_last_name_field { order: 3; } | |
| #billing_first_name_field { order: 4; } | |
| #billing_country_field { order: 5; } | |
| #billing_state_field { order: 6; } | |
| #billing_city_field { order: 7; } | |
| #billing_postcode_field { order: 8; } | |
| #billing_address_1_field { order: 9; grid-column: span 2;} | |
| #billing_company_field { order: 10; grid-column: span 2;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment