Viewing 10 replies - 1 through 10 (of 10 total)
  • You want the form there or just a link to the form?

    This is something I have been wondering about as well – a way to put the actual login forum on my home page. I played around with it for a while, but haven’t quite figured it out. I successfully put the forum on there, but it wouldn’t function correctly. I assume I’m missing something simple.

    Thread Starter andrewbillits

    (@andrewbillits)

    i want a form there if possible,

    thanks

    Thread Starter andrewbillits

    (@andrewbillits)

    i know someone has to have pulled this off in the past.

    Modify the below page to suit your needs. There’s no php, it’s straight HTML, so it should work on any page.

    <div id="login">
    <h1><a href="https://www.ads-software.com/">WordPress</a></h1>

    <form name="loginform" id="loginform" action="https://domain.tld/wp-login.php" method="post">
    <label>Login:<input type="text" name="log" id="log" value="" size="20" tabindex="1" /></label>

    <label>Password: <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="2" /></label>

    <p class="submit">
    <input type="submit" name="submit" id="submit" value="Login &raquo;" tabindex="3" />
    <input type="hidden" name="redirect_to" value="wp-admin/" />

    </form>
    <ul>
    <li><a href="https://domain.tld" title="Are you lost?">&laquo; Back to blog</a></li>
    <li><a href="https://domain.tld/wp-register.php">Register</a></li>
    <li><a href="https://domain.tld/wp-login.php?action=lostpassword" title="Password Lost and Found">Lost your password?</a></li>
    </ul>
    </div>

    Edit https://domain.tld to point to your WordPress directory. Btw, this code is ripped directly from wp-login.php after you view it at the login window.

    Thread Starter andrewbillits

    (@andrewbillits)

    thank you very much ??

    great – thanks!

    Nice, but is it also possible that when you have logged in, the form disappears, and only a “logout” link shows?

    Is it possible to display the Write, Manage, Profile link in between the site admin and log out link after users logged in? Cause it would be more convenient to click Write link on the main page to write an entry rather than going thru
    Site Admin=>Dashboard=>Write to write an entry =)

    How is it possible to show a “logout” button, once users are logged in?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Move login form to a page within my site’ is closed to new replies.