Putting a Registration / Login Form on the Front Page (1 post)

  1. trivum
    Posted 8 years ago #

    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() {
    window.onload = focusit;
    <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">
    <input type="text" name="user_login" id="user_login" class="input" value="" size="20" tabindex="10" /></label>

    <input type="text" name="user_email" id="user_email" class="input" value="" size="25" tabindex="20" /></label>
    <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>

Topic Closed

This topic has been closed to new replies.

About this Topic