• I followed the steps in this post to create a custom login page using the [learn_press_profile] shortcode. However, I found two issues:

    1. When the user is logged in and they return to this login page, there is a large, empty profile banner at the top, as well as a horizontal line for the left sidebar which is not needed.
    2. When the user is logged in and they return to this login page, this page still shows the login form, instead of showing a message that says ‘You are already logged in. Do you want to log out?’ (or something similar).

    Issue 1 can be solved by hiding the banner and sidebar using CSS specific to this page. But I don’t know how to solve Issue 2. I tried using the .logged-in CSS class to try to hide the login and registration forms on this page only when the user is logged in, but it didn’t work. And even if I could get this to work, I can’t get it to show an appropriate message like ‘You are already logged in. Do you want to log out?’

    Here is a video showing the issues: https://www.dropbox.com/scl/fi/0422dm4ewytowlgribzbd/LearnPress_LoginPage.mp4?rlkey=u3tyi47fzep0unprrbw0173f7&dl=0

    I saw this post that mentioned there used to be another shortcode that was specifically for a login form, not for a profile page, which was [thim-login-form]. But this no longer works.

    I look forward to your advice on this.

    • This topic was modified 1 year, 10 months ago by kalleaume.
    • This topic was modified 1 year, 10 months ago by kalleaume.
    • This topic was modified 1 year, 10 months ago by kalleaume.
    • This topic was modified 1 year, 10 months ago by kalleaume.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Replace the login button link by the profile page link e.g https://example.com/profile/

    Thread Starter kalleaume

    (@kalleaume)

    My question was about creating a custom login page using the [learn_press_profile] shortcode at a custom URL, e.g. https://example.com/login

    As referenced in the first sentence of my post, I followed the instructions from your team about how to set up a custom login page by using the above shortcode. That’s when I found the two issues mentioned above. 

    So unfortunately your response doesn’t answer my question. You are saying that the only workaround for the two issues I identified is to not use a custom login page. In that case, why does the [learn_press_profile] shortcode even exist? And why did your team suggest using this shortcode to set up a custom login page? 

    Sorry! I am not a wordpress or learnpress team member but a wordpress web developer like you. By seeing your question i just wanted to help you to solve the issue. If you have still any question about this issue your welcome to ask. Now lets come to the questions you asked in the above reply about the purpose of shortcode . Once you used the shortcode in your custom login page then your custom login page and built in profile page becomes same so it does not make any sense. If you still want to use your custom login page then you should do one extra step which wordpress team member did not mentioned in this post which is: go to learnpress>setting>general>Profile page and change the ‘Profile’ page to your custom ‘login’ page, hope it will fix your issue.

    Thread Starter kalleaume

    (@kalleaume)

    Hello, and thank you for trying to help me. Unfortunately, that solution won’t work as I don’t want the profile page to have the URL of ‘login’. I want the page with the ‘profile’ URL to be the profile page and the page with the ‘login’ to be the login page. That’s why I was following the instructions on that post to make a custom login page. I was not wanting to make a custom profile page. I hope that makes sense. Thank you again, and I will try to find another workaround.

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

The topic ‘Strange behaviour on Login page’ is closed to new replies.