Log-in form in the side bar is not centered
-
I Hello there,
I entered log-in code into sidebar.php
here is the code:<li id=”login”>
<?php
global $user_ID, $user_identity;
get_currentuserinfo();
if (!$user_ID):
?>
<h2><?php _e(‘Login’); ?></h2>
<form name=”loginform” id=”loginform” action=”<?php echo get_settings(‘siteurl’); ?>/wp-login.php” method=”post”>
<div><label><?php _e(‘Login’) ?>:
<input type=”text” name=”log” id=”log” value=”” size=”20″ tabindex=”7″ /></label>
<label><?php _e(‘Password’) ?>:
<input type=”password” name=”pwd” id=”pwd” value=”” size=”20″ tabindex=”8″ /></label>
<label><input type=”checkbox” name=”rememberme” value=”forever” tabindex=”9″ /> <?php _e(“Remember me”); ?></label>
<input type=”submit” name=”submit” value=”<?php _e(‘Login’); ?> »” tabindex=”10″ />
<?php wp_register(”, ”); ?>
<input type=”hidden” name=”redirect_to” value=”<?php echo $_SERVER[‘REQUEST_URI’]; ?>”/></div>
</form>
<?php
else:
?>
<h2><?php echo $user_identity; ?></h2>-
<?php wp_register(); ?>
- “><?php _e(‘Logout’); ?>
<?php
endif;
?>But if you look on it here https://www.plentyofluck.com/
it is not centered and it looks like this form moved to the left a little bit.
What should I do to correct it or center itThanks,
Vad
- The topic ‘Log-in form in the side bar is not centered’ is closed to new replies.