• I wanted to highlight the registration form, and so instead of just linking to the the sign-up page, I decided to put a form on the front page.

    I looked around for this topic here, and I looked for a plugin that would do, but I didn’t see anything.

    In the end, I took the code below and pasted into the front page template file. It seems to do the trick, but I’m wondering if it might cause some problems down the road somehow.

    Anyone see any dangers in this?

    The code I used:

    <!–[if IE]><style type=”text/css”>#login h1 a { margin-top: 35px; } #login #login_error { margin-bottom: 10px; }</style>
    <![endif]–><!– Curse you, IE! –>
    <script type=”text/javascript”>
    function focusit() {
    document.getElementById(‘user_login’).focus();
    }
    window.onload = focusit;
    </script>
    <body class=”login”>

    <p class=”message register”>Register For This Site</p>

    <form name=”registerform” id=”registerform” action=”wp-login.php?action=register” method=”post”>
    <p>
    <label>Username:
    <input type=”text” name=”user_login” id=”user_login” class=”input” value=”” size=”20″ tabindex=”10″ /></label>
    </p>
    <p>

    <label>E-mail:
    <input type=”text” name=”user_email” id=”user_email” class=”input” value=”” size=”25″ tabindex=”20″ /></label>
    </p>
    <p id=”reg_passmail”>A password will be e-mailed to you.</p>
    <p class=”submit”><input type=”submit” name=”wp-submit” id=”wp-submit” value=”Register »” tabindex=”100″ /></p>
    </form>

  • The topic ‘Putting a Registration / Login Form on the Front Page’ is closed to new replies.