Modify Login Box

Hi, I would like to remove the reset button and “I forgot my User ID/Password” link from the login box. I have modified the password.php in the theme folder, but I am unable to find where the code for the login box is. Thanks

P.S. Great product

Comments

  • fretzl Administrator, Developer
    You can modify the zp-core/admin.css but your changes would have to be applied again each time you upgrade.
  • Thanks for your reply,

    I have now removed the button and link but I would also like to remove the two outer borders around the login form and the word login. I would also like to remove “The page you are trying to view is password protected.” From the top and reduce the padding around the form.
  • acrylian Administrator, Developer
    It should be possible to do that via the theme's css as well.
  • Which part in the theme's CSS I can't find it?
  • acrylian Administrator, Developer
    well, you have to add it first.
  • fretzl Administrator, Developer
    In your theme's css add:

    `
    fieldset#logon_box legend {
    display: none;
    }

    fieldset#logon_box fieldset legend {
    display: block;
    }

    #loginform p.logon_link {
    display: none;
    }
    `
    To change borders and paddings find
    `#loginform` and
    `#loginform fieldset` in your theme's css and change the appropriate properties.
  • Thanks very much for your help, that worked well thanks,

    There is just one thing I am still struggling with, I still have;

    "The page you are trying to view is password protected."

    Above the login box with loads of white space. I am using the default template and this doesn't seem to be in the password.php or the theme css
  • fretzl Administrator, Developer
    Ah yes, I forgot that one.

    Add this to your stylesheet:
    `
    #passwordform p {
    display: none;
    }
    `
    The margins (the loads of white space) can also be changed
    in the `#loginform` selector.
  • Got it,

    fretzl YOU ARE THE MAN!!

    Thanks for all your help.
Sign In or Register to comment.