WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
[resolved] From where are the Password fields pulled? (9 posts)

  1. BeautyPirate
    Member
    Posted 1 year ago #

    Hello, I´m adding <br /> tags to the end of the label tag of the form fields but in the profile form template the password fields are not showing up. Where can I add the br tag for them?

    http://wordpress.org/extend/plugins/theme-my-login/

  2. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    The password fields are injected to the template using the login_form action hook. The easiest way to do this would be to hardcode them yourself into the template.

  3. BeautyPirate
    Member
    Posted 1 year ago #

    <?php
    do_action( 'register_form' ); // WordPress hook
    do_action_ref_array( 'tml_register_form', array( &$template ) ); //TML hook
    ?>

    But I´m leaving the ref array part below that hook?

  4. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    You'll want to remove the callback from the hook so that they don't display twice:

    remove_action( 'tml_register_form', array( &$GLOBALS['theme_my_login_custom_passwords'], 'password_fields' ) );
  5. BeautyPirate
    Member
    Posted 1 year ago #

    This does not seem to work. The Password fields do nothing in that new case now. I can hard code two break tags in there, just where is the template stored? Thanks for your time, much apprechiated

  6. BeautyPirate
    Member
    Posted 1 year ago #

    http://s8.postimg.org/vpdk0uhqd/Capture.jpg

    See? That´s not good in a responsive theme isn´t it? ;-)

    The Confirm Password label is okay because the wording is longer so it breaks automatically.

  7. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    Although I don't recommend it, the code is in theme-my-login/modules/custom-passwords/custom-passwords.php.

  8. BeautyPirate
    Member
    Posted 1 year ago #

    Oh but that just did the job most simply. I´ll just add it again when a new update is out. Thank you!

  9. UsusIpse
    Member
    Posted 4 months ago #

    This was a tricky bugger to track down. Naturally I find this after. =D

    Will we have:

    _e( 'Password', 'theme-my-login' );

    instead of

    _e( 'Password');

    as of 6.4?

    I have a decent set of modifications to 6.3.9 that provides for l10n if you want me to make a branch in your rep just send me a line.

    Thanks again Jeff.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.