How to add placeholder text to password fields
-
Hi there,
I am currently trying to add placeholder text to the fields in the register-form.php file.
So far, I have managed to do this for the “Username” and “Email” fields by doing the following:
<p class="tml-user-login-wrap"> <label for="user_login<?php $template->the_instance(); ?>"><?php _e( 'Username', 'theme-my-login' ); ?></label> <input type="text" name="user_login" placeholder="Username" id="user_login<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_login' ); ?>" size="20" /> </p> <?php endif; ?> <p class="tml-user-email-wrap"> <label for="user_email<?php $template->the_instance(); ?>"><?php _e( 'E-mail', 'theme-my-login' ); ?></label> <input type="text" name="user_email" placeholder="Email" id="user_email<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_email' ); ?>" size="20" /> </p>
However, I cannot seem to find where I add placeholder text for the “Password” and “Confirm Password” fields.
I’d really appreciate it if you could give me the code I need to use in order to this to work.
Many thanks.
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to add placeholder text to password fields’ is closed to new replies.