WordPress.org

Ready to get started?Download WordPress

Forums

Can I remove footer javascript in login page? (2 posts)

  1. Sunrise12
    Member
    Posted 6 months ago #

    The class-theme-my-login.php script generates the following javascript code to the footer of my login page and messes up its height and appearance:

    <script type="text/javascript">
    function wp_attempt_focus() {
    setTimeout( function() {
    try {
    <?php if ( $user_login ) { ?>
    d = document.getElementById('user_pass');
    <?php } else { ?>
    d = document.getElementById('user_login');
    <?php } ?>
    d.value = '';
    d.focus();
    } catch(e){}
    }, 200 );
    }
    wp_attempt_focus();
    if(typeof wpOnload=='function')wpOnload()
    </script>

    Can I remove or fix this?

  2. Sunrise12
    Member
    Posted 6 months ago #

    Oops, I posted this in the wrong place. Too bad that I cannot delete this post.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.