Forums

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

  1. benz1
    Member
    Posted 11 months 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
    Posted 11 months 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 4 months ago #

    Putting it in your functions.php also works.

  4. Jeff Farthing
    Member
    Posted 4 months 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

Reply

You must log in to post.

About this Plugin

About this Topic