Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chandra10207/59e43d6ccf26c67ea7be4ec7a2dd8b42 to your computer and use it in GitHub Desktop.
Save chandra10207/59e43d6ccf26c67ea7be4ec7a2dd8b42 to your computer and use it in GitHub Desktop.
Adding Bootstrap Forms to WooCommerce
add_filter('woocommerce_billing_fields', 'custom_woocommerce_billing_fields');
function custom_woocommerce_billing_fields( $fields ) {
$fields['billing_address_1']['class'] = array( 'form-group' );
$fields['billing_address_1']['input_class'] = array( 'form-control' );
return $fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment