usernma/email section on sign up form and Wordpress widget too long

Discussion in 'Templates customization' started by ddaoud3, Nov 27, 2014.

  1. ddaoud3

    ddaoud3 New Member

    Joined:
    Oct 30, 2008
    Messages:
    27
    Hi:

    I installed aMember, and integrated it with Wordpress. It's all functional and works fine. Only issue is I want to control the length of the username/passw in the WP widget and in the username in the signup form. Please see the image here and view the site to see what I mean:

    Site: http://www.mea-risk.com (widget)
    Signup form: http://www.mea-risk.com/secure/login/
    Images below.


    Widget: Capture1.JPG Capture2.JPG
  2. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    PHP:
    <form id="loginform" method="POST" action="http://www.mea-risk.com/secure/login" name="loginform">
    <
    p>
    <
    label>Login</label>
    <
    br>
    <
    input id="user_login" class="input" type="text" size="15" name="amember_login"//this line
    </p>
    <
    p>
    <
    label>Password</label>
    <
    br>
    <
    input id="user_password" class="input" type="password" size="15" name="amember_pass"// this line
    </p>
    <
    input type="hidden" value="aHR0cDovL3d3dy5tZWEtcmlzay5jb20v" name="_amember_redirect_url">
    <
    class="submit">
    </
    form>
    In lines where I have added the comment ' // this line' add {width="250px" } (without the curly brackets) into your script and that should work ok. You might need to adjust the 250 if necessary to change the width.
  3. ddaoud3

    ddaoud3 New Member

    Joined:
    Oct 30, 2008
    Messages:
    27
    many thanks. Just so I understand.. this is within an existing PHP script (file) or should I create a new script? If it is an existing PHP file, which one would it be? Also when adding the width=250px, I suspect I have to remove //

    Thank you again
  4. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    Which file? Don't know as to be honest my knowledge of Wordpress is small as never used it. But it will probably be in the file that constructs the sidebar. Again it can depend upon where the writer of the Wordpress template obtains the form details from. Might be worth contacting them and asking.

    The // denotes a comment in PHP so either remove the // and this line comment or leave them and replace the 'this line' comment with a more meaningful one so in the future you know you changed this line and in what way.

Share This Page