• Resolved Christopher Harden

    (@christopherharden)


    When going to the checkout page, the page is automatically scrolled to the empty “First Name” field for Billing (the field is pink). It jumps there even before clicking the checkout button.

    I need to stop the auto scrolling on this page completely. We have content that display above the WooCommerce checkout area that is loaded by the shortcode.

    Thank you for your help.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Place this in functions.php file:

    function custom_override_checkout_fields( $fields ) {
     $fields['billing']['billing_first_name']['autofocus'] = 'false';
      $fields['shipping']['shipping_first_name']['autofocus'] = 'false';
        return $fields;
    }
    add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
    Thread Starter Christopher Harden

    (@christopherharden)

    Thank you! Worked perfectly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Stop auto scroll to empty field on checkout’ is closed to new replies.