Title: [Plugin: Sidebar Login] Edit Form Width
Last modified: August 19, 2016

---

# [Plugin: Sidebar Login] Edit Form Width

 *  [nacoman](https://wordpress.org/support/users/nacoman/)
 * (@nacoman)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-sidebar-login-edit-form-width/)
 * How does one edit the width of the username and password fields in this plugin?
 * want to make them less wide then they are…

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [jamierc](https://wordpress.org/support/users/jamierc/)
 * (@jamierc)
 * [16 years ago](https://wordpress.org/support/topic/plugin-sidebar-login-edit-form-width/#post-1368347)
 * Did you ever find out how to do this? I want to do the same thing.
 * Thanks
 * Jamie
 *  [jamierc](https://wordpress.org/support/users/jamierc/)
 * (@jamierc)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/plugin-sidebar-login-edit-form-width/#post-1368357)
 * I managed to work this out. Edit the plugin code – look for the lines below, 
   and add the size=”10″ (in bold below), after the class=”mid”. You’ll need to 
   add it twice. Obviously change the “10” to the size you want the fields to be.
 * // login form
    echo ‘<form method=”post” action=”‘.wp_sidebarlogin_current_url().'”
   >’; ?> <p><label for=”user_login”><?php echo $theusername; ?></label><input name
   =”log” value=”<?php echo attribute_escape(stripslashes($_POST[‘log’])); ?>” class
   =”mid” **size=”10″** id=”user_login” type=”text” /></p> <p><label for=”user_pass”
   ><?php echo $thepassword; ?></label><input name=”pwd” class=”mid” **size=”10″**
   id=”user_pass” type=”password” /></p>
 *  [jamierc](https://wordpress.org/support/users/jamierc/)
 * (@jamierc)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/plugin-sidebar-login-edit-form-width/#post-1368358)
 * I managed to work this out. Edit the plugin code – look for the lines below, 
   and add the size=”10″ (in bold below), after the class=”mid”. You’ll need to 
   add it twice. Obviously change the “10” to the size you want the fields to be.
 * // login form
    echo ‘<form method=”post” action=”‘.wp_sidebarlogin_current_url().'”
   >’; ?> <p><label for=”user_login”><?php echo $theusername; ?></label><input name
   =”log” value=”<?php echo attribute_escape(stripslashes($_POST[‘log’])); ?>” class
   =”mid” **size=”10″** id=”user_login” type=”text” /></p> <p><label for=”user_pass”
   ><?php echo $thepassword; ?></label><input name=”pwd” class=”mid” **size=”10″**
   id=”user_pass” type=”password” /></p>
 *  [gpspake](https://wordpress.org/support/users/gpspake/)
 * (@gpspake)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-sidebar-login-edit-form-width/#post-1368382)
 * I am using sidebar login but the username and password fields are completely 
   different sizes.
 * Even when I try the solution above, it effectively changes their width but they
   are still not the _same_ width. Also the username box is larger, in terms of 
   height, too and the password box is really thin.
 * I also tried increasing the width of my sidebar and removing all of the othe 
   widgets, no luck.
 * [You can see what I’m talking about here](http://www.pelicancaytoday.com)
 *  [gpspake](https://wordpress.org/support/users/gpspake/)
 * (@gpspake)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-sidebar-login-edit-form-width/#post-1368383)
 * Sorry [heres the site](http://www.pelicancaytoday.com)
 *  [gpspake](https://wordpress.org/support/users/gpspake/)
 * (@gpspake)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-sidebar-login-edit-form-width/#post-1368384)
 * add this to custom.css
    .custom #user_pass { padding:0.308em;}
 *  [Trinaa3](https://wordpress.org/support/users/orenlebbo/)
 * (@orenlebbo)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-sidebar-login-edit-form-width/#post-1368406)
 * hi.
    thank you for this post. i do have a question: how can i change the size
   of the: ‘username:’, ‘password’, ‘logout’ ? thanks 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘[Plugin: Sidebar Login] Edit Form Width’ is closed to new replies.

 * 7 replies
 * 4 participants
 * Last reply from: [Trinaa3](https://wordpress.org/support/users/orenlebbo/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-sidebar-login-edit-form-width/#post-1368406)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
