Support » Plugin: Theme My Login » 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" />
    		<?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" />

    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)
  • Plugin Author Jeff Farthing


    You would need to remove TML’s action that adds the password fields and just add the fields yourself.

    would you kindly be able to show me how i would go about doing that?

    Tom, I did this as well….

    You can find the code for it here.

    I do want to note, it requires uncommenting a line in the plugin itself, since removing the form with a filter/action doesn’t seem to work yet and the plugin author lacks to give proper support. I’m waiting for a reply for over 7 months….

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add placeholder text to password fields’ is closed to new replies.