WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Checkout Field Size (2 posts)

  1. Shaan
    Member
    Posted 1 year ago #

    Hi everyone,
    How can I make the fields on the checkout page larger? I figured out how to make the address fields larger, but I am not sure how to make the other ones larger.

    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' );
         $fields['first_name']['class'] = array( 'form-row-wide' );
    
         return $fields;
    }

    Thanks,
    Munny1

    http://wordpress.org/extend/plugins/woocommerce/

  2. Shaan
    Member
    Posted 1 year ago #

    Never mind I figured it out. I just added billing_ to all the field names and added the filters.
    Example:

    billing_first_name
    billing_last_name
    billing_email

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic