WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
[resolved] Prevent forced focus (4 posts)

  1. benz1
    Member
    Posted 3 years ago #

    Great plugin but how can I prevent it from forcing focus to the first field (which blanks out an initial value).

    Thanks.

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

  2. Jeff Farthing
    Member
    Plugin Author

    Posted 3 years ago #

    Create/edit /wp-content/plugins/theme-my-login-custom.php and add the following to it:

    remove_action( 'wp_print_footer_scripts', array( &$GLOBALS['theme_my_login'], 'print_footer_scripts' ) );

  3. eastwoodarts
    Member
    Posted 2 years ago #

    Putting it in your functions.php also works.

  4. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    You brought up a 7-month-old thread to say that?

    I recommend putting it in the file I mentioned for two reasons:

    1. If you change themes, the code stays
    2. It keeps the code separate from theme related code

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic