• Resolved mark737

    (@mark737)


    I’d like to change the order of the register fields. Currently the email/password fields are always displayed at the top. I’d like some register fields to be displayed before the email/password fields, preferably through php instead of css. Is it possible? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Mark737,

    There is no option in our plugin for this. The username and password fields will always show at the top, followed by your custom fields. This should be possible, if you have the expertise in PHP and you can go to this file plugins\front-end-only-users\Shortcodes\Insert_Register_Form.php and change the code. Because this isn’t a feature of our plugin and isn’t something we’ve tried or tested before, we wouldn’t be able to provide specific code. Please, make sure to back up your file before doing any changes to plugin files.

    Thank you

    G

    (@glienhard)

    @mark737 I have done many mods to the php code in my setup. This is something that isn’t officially supported so I would also advise making a copy of the file before you begin and copy it to a different directory. Be careful because there are many things that are cross linked but it should be possible. Also you should know that any time you do a future plugin update through the GUI, that will overwrite any changes you made and any other files created. All updates will need to be done manually.

    Thread Starter mark737

    (@mark737)

    Thanks for the support, it’s a great plugin by the way, sort of a minimal coding style that I like.
    I used css to do this, in my page-register.php template:

    #ewd-feup-register-form { display: flex; flex-direction: column; }
    #ewd-feup-username-div { order: 3; }
    #ewd-feup-password-div { order: 4; }
    #ewd-feup-confirm-password-div { order: 5; }
    #ewd-feup-password-strength-div { order: 6; }
    #ewd-feup-field-11 { order: 1; }
    #ewd-feup-field-9 { order: 2; }
    #ewd-feup-field-8 { order: 7; }
    .feup-pure-control-group { order: 8; }

    For this issue I could have used a $ReturnString filter for insert_register_form.php.

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

The topic ‘Register fields order’ is closed to new replies.