Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter gruvismalt

    (@gruvismalt)

    hello???

    hrn1995 (woo-hc)

    (@aguinaldodarla)

    Hi @gruvismalt

    To change the placeholder text for the “Password *” field, you will need to add a few lines of code to your theme’s functions.php file. Are you trying to change the one from the login page, or from the checkout page?

    Please note that modifying the code should be done with caution. If you’re not comfortable doing this, it would be a good idea to reach out to a developer or someone who is familiar with PHP. We can’t provide support for code customization, as per our support policy. We highly recommend contacting one of the services on our Customization page.

    On the other hand, I found an article showing you with code how to change the user name and password placeholders through the checkout page. You may refer to this article: How to change the “Account Username” & “Account Password” text from WooCommerce checkout form? – Stack Overflow

    Since you only need to change the password field, you can use something like:

    add_filter('woocommerce_checkout_fields', 'custom_change_password_placeholder');
    
    function custom_change_password_placeholder($fields) {
        $fields['account']['account_password']['placeholder'] = __( 'YOUR_NEW_PLACEHOLDER', 'woocommerce' );
    
        return $fields;
    }

    I hope it helps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing Password* placeholder’ is closed to new replies.