• Resolved wp_user1

    (@wp_user1)


    Hey,
    how can I link to the Login page from content using it in a modal?

    In our example we have the page /login – when I link to /login/ it opens as a new page.

    Chen clicking the Login from menu, it works fine with modal.

    Thanks!

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

    To open the login and register form in the popup, you can use class ‘uwp-login-link and ‘uwp-register-link’ in the anchor tag and it will open the form in popup on click of a link.

    Regards,
    Patrik

    Thread Starter wp_user1

    (@wp_user1)

    Hey Patrik, thank you very much. This seems to work.

    But another question: when I click this link when already logged in, there appears an endless loading modal… Is there any solution?

    https://abload.de/img/bildschirmfoto2022-03tzkbp.jpg

    Hi,

    You should apply that class only if the user is not logged in. Maybe try condition like if ( is_user_logged_in() ) {}.

    Regards,
    Patrik

    Thread Starter wp_user1

    (@wp_user1)

    Hmmm okay perhaps we just disable the links via CSS then… thx

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to link to Login modal?’ is closed to new replies.