Simple Login Box in Header
-
Hey all,
I know this isnt exactly a totally new subject but after over a week of struggling with this I figured I’d see if I could get some help.
So, all I want to do is add a simple login/logout/register/forgot password box into the header of a site I’m working on for a client.
I come from an old school html background and am still pretty fresh to css and php etc. I love the usability of wordpress and widgets but cannot get this to work the way I need it to.
What I need is something like this:
https://i38.tinypic.com/b5r24z.jpg
but with register / forgot pass also.
more like what’s pictured at the top of this:
https://greenforestcafe.net/main-page-changed.jpg
I currently have the Sidebar Login widget placed in the header widget section using WP Weaver. It seems no matter what I do I cant resize it to fit properly like I need it to be.
In my constant searchin on the subject I came across this post:
https://www.ads-software.com/support/topic/how-to-put-a-login-box-in-header
I have tried using the code posted in that, putting it in the header.php and also tried instead using the code in a custom widget but can’t get it to look right, instead of a neat box like
https://i38.tinypic.com/b5r24z.jpg
it comes out stair-stepped, not aligned, just kinda jumbled.
also it lacks the register and forgot pass functions anyway.
My client is being very specific about wanting this seemingly simple thing in pretty much exactly the way they pictured in the mock up they made https://greenforestcafe.net/main-page-changed.jpg
I’ve seen this done over and over on various websites but cannot for the life of me get it to work right, at my wits end…
website I’m workong on: https://greenforestcafe.net/
code I tried from the post I mentioned:<div align=”right”>
<form name=”loginform” id=”loginform” action=”https://xxx.com/wp-login.php” method=”post”>
Username <input value=”Username” class=”input” type=”text” size=”20″ tabindex=”10″ name=”log” id=”user_login” onfocus=”if (this.value == ‘Username’) {this.value = ”;}” onblur=”if (this.value == ”) {this.value = ‘Username’;}” /> <input name=”rememberme” id=”rememberme” value=”forever” tabindex=”90″ type=”checkbox”> Remember Me?
Password <input value=”Password” class=”input” type=”password” size=”20″ tabindex=”20″ name=”pwd” id=”user_pass” onfocus=”if (this.value == ‘Password’) {this.value = ”;}” onblur=”if (this.value == ”) {this.value = ‘Password’;}” />
<input name=”wp-submit” id=”wp-submit” value=”Log In” tabindex=”100″ type=”submit”>
<input name=”redirect_to” value=”https://xxx.com/wp-admin/” type=”hidden”>
<input name=”testcookie” value=”1″ type=”hidden”></form>
</div>
- The topic ‘Simple Login Box in Header’ is closed to new replies.