Strange behaviour on Login page
-
I followed the steps in this post to create a custom login page using the [learn_press_profile] shortcode. However, I found two issues:
- 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.
- 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.
The topic ‘Strange behaviour on Login page’ is closed to new replies.