Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Created February 3, 2012 23:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikejolley/1733834 to your computer and use it in GitHub Desktop.
Save mikejolley/1733834 to your computer and use it in GitHub Desktop.
WooCommerce - Make address fields wider
add_filter('woocommerce_billing_fields', 'custom_woocommerce_billing_fields');
function custom_woocommerce_billing_fields( $fields ) {
$fields['billing_address_1']['class'] = array( 'form-row-wide' );
$fields['billing_address_2']['class'] = array( 'form-row-wide' );
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment