WORDPRESS | login form on the header or footer

Sometime having the ability to log in directly from the homepage is usefull.
Rather than having to be redirected to the wp-login page.
I mostly use that on Intranet LAN Websites.


just add in your theme header (or footer or anywhere you wish)


<form action="<?php bloginfo('url') ?>/wp-login.php" method="post">
                <input type="text" name="log" id="log" value="Identifiant" size="22" />
                <input type="password" name="pwd" id="pwd" size="22" value="Mot de passe" />
                <input type="submit" name="submit" value="OK" class="button" /><br/>
                <label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" />Se souvenir de moi</label> <a href="<?php bloginfo('url') ?>/wp-login.php?action=lostpassword">/ Mot de passe perdu ?</a>
                <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
</form>

Results should look like that :
WP_header_login

Olivier
About

Product and graphic designer turned to be a Mac SysAdmin.

Posted in Design, Development Tagged with: , ,
0 comments on “WORDPRESS | login form on the header or footer
2 Pings/Trackbacks for "WORDPRESS | login form on the header or footer"
  1. […] This is a follow-up of this post on the same subject : WORDPRESS | login form on the header or footer […]

  2. […] is another follow-up of those two posts: this post on the same subject : WORDPRESS | login form on the header or footer and WORDPRESS | Add login logout button to the menu […]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>