Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    For login/registration in the popup, we only reload the page on submission to allow quick login or register without redirecting. But if the form is used in the page then we use the redirect_to parameter to redirect back to the page.

    Regards,
    Patrik

    Thread Starter wp_user1

    (@wp_user1)

    Hmm perhaps a missunderstanding.

    When I am on page XYZ, I click on login.
    Now the modal opens.
    In the Login modal window there is a link “registration”.
    I want to add a parameter on this registration-link.

    So when the new user clicks on “login” and then decides he has to register.

    Hi,

    You can override the login.php file in your theme and modify the link coming from the uwp_get_register_page_url() function as per your requirements.

    Regards,
    Patrik

    Thread Starter wp_user1

    (@wp_user1)

    Hey Patrik,
    okay that works.

    I had to find out, that not /templates/login.php is the right choice, but /templates/bootstrap/login.php

    But the question is: how can I get the URL, where the user is?

    When I try $_SERVER[‘REQUEST_URI’] I get the “/wp-admin/admin-ajax.php”. But I need the URL from where the user clicks on the “Login” button to open the modal.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Customizing login form: add suffix to registration-link’ is closed to new replies.