We launched new forums in March 2019β€”join us there. In a hurry for help with your website? Get Help Now!
    • 31972
    • 13 Posts
    Apologies if this has already been covered but several searches produced nothing. The length of the two text input fields is too long and I have searched all the files to find where this is located with no luck. Plenty of search results but nothing that works.

    If anyone knows where the code of the displayed weblogin inputs is I would appreciate it (after spending an hour looking).

    Martin
      • 28042 β˜† A M B β˜†
      • 24,524 Posts
      It’s all in the CSS. Just style the width of the input fields in your .css file.

      The actual code that produces the default login form is in the assets/snippets/weblogin/weblogin.inc.php file at the bottom of the file. The form is also available in the assets/snippets/weblogin/chunk.weblogin.tpl file; you can copy/paste this into a chunk in the Manager then edit it to suit your needs and tell WebLogin to use it instead of the default with the &tpl=`yourchunkname` parameter. This would be better than editing the weblogin.inc.php file, as that would get overwritten whenever you upgraded MODx.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org