• Resolved teamdxc

    (@teamdxc)


    I’d want to ask how to rearrange the order of buttons on the login page??
    I have attached the link for your better understanding

    I want to make the register button (left) comes first and then login button (right) for better user experience.

    I tried to change the setting under WP-administration page – settings – Appearance – Login form – Login Primary Button Text

    Actually, nothing changed.
    Any solution for this?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @teamdxc

    Unfortunately. you will have to customize the UM to swap the buttons.

    You can remove this action hook, copy its content – swap the buttons, and then attach your custom function.
    add_action( 'um_after_register_fields', 'um_add_submit_button_to_register', 1000 );

    Regards,

    Thread Starter teamdxc

    (@teamdxc)

    could you explain to me more details? Sorry, I’m not sure what you meant!o

    Is this what you meant?
    add_action( 'um_after_register_fields', 'um_add_alt_button_to_login', 1000 );

    • This reply was modified 4 years, 10 months ago by teamdxc.
    • This reply was modified 4 years, 10 months ago by teamdxc.
    • This reply was modified 4 years, 10 months ago by teamdxc.
    • This reply was modified 4 years, 10 months ago by teamdxc.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @teamdxc

    You need to remove the existing action hook with the following code: remove_action( 'um_after_register_fields', 'um_add_alt_button_to_login', 1000 );

    Copy the content of the function um_add_alt_button_to_login and add it to your own function. Attach your function to this hook so that you can modify the Buttons: um_after_register_fields

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @teamdxc

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards,

    Thread Starter teamdxc

    (@teamdxc)

    Hello @champsupertramp

    Could you kindly let me know the directory where to change the code above you shared?

    THank you,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to rearrange the order of buttons in login and registration pages’ is closed to new replies.