• 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

    (@jamierc)

    Did you ever find out how to do this? I want to do the same thing.

    Thanks

    Jamie

    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>

    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>

    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

    add this to custom.css
    .custom #user_pass { padding:0.308em;}

    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.