Page 1 of 1

Need help aligning search box and sign in box in header

Posted: Sun Sep 26, 2010 2:03 pm
by cstephen
Ok so I have no idea what I am doing when it comes to coding. I've done a little research and that is how I've come this far, but I am stuck because my sign in box is at the very top of my header and not aligned with everything else. I was wondering if anybody could take a look at my code and let me know what I am doing wrong. The name of the website is www.mymontage.net. You can go there and see what I mean as far as the sign in box is really off to the top and not aligned at all. I also wanted to know how do i get it to say Welcome *username* once they have logged in instead of just "welcome". What code would I use to put if I wanted it to say "User Login" if they're not signed in. If the entire header code is needed to help solve the problem let me know and i'll post that as well. The help would be greatly appreciated. Here's the code..

Code: Select all

<div= style="float:right;">
 
 
<?php if (is_user_logged_in()) { ?>
 
 
Welcome <strong><?php echo $user_identity ?></strong>.
 
<?php ?>
 
<form name="loginform" id="loginform" action="<?php echo wp_logout_url(); ?>" method="post">
 
<input type="submit" name="wp-submit" id="wp-submit" value="LOG OUT" />
<a href="http://www.mymontage.net/wp-admin/">EDIT YOUR PROFILE</a>
 
<input type="hidden" name="redirect_to" value="<?php bloginfo('url'); ?>" />
</form>
 
<!-- If User Is NOT Logged In Display This -->
 
<? } else { ?>
 
<form name="loginform" id="loginform" action="<?php bloginfo('url'); ?>/wp-login.php" method="post">
 
<label for="log">Username</label> <input type="text" name="log" id="user_login" class="input" value="" size="20" tabindex="10" /></p>
<label for="pwd">Password</label> <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></p>
 
<input type="submit" name="wp-submit" id="wp-submit" value="LOG IN" /> <input type="button" value="SIGNUP" onClick="parent.location='<?php bloginfo('url'); ?>/wp-login.php?action=register'" />
 
<a href="<?php bloginfo('url'); ?>/wp-login.php?action=lostpassword">Lost your password?</a>
 
<input type="hidden" name="redirect_to" value="<?php bloginfo('url'); ?>/members" />
<input type="hidden" name="testcookie" value="1" />
</form>
 
<? } ?>