Timeline for Add error message on password protected page
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 11, 2021 at 5:15 | comment | added | Addy | I use above code. Its work well but error message not remove when we simple refresh page | |
Feb 2, 2021 at 21:05 | comment | added | fuxia♦ |
@CarolinaLallana in Your stylesheet, add a rule for the selector .custom-password-message , like this: .custom-password-message { color: red; }
|
|
Feb 2, 2021 at 18:07 | comment | added | Carolina Lallana | It works wonderful. How can I customize the typography color and alignment of the error message? Thanks | |
Jan 6, 2021 at 18:19 | review | Suggested edits | |||
Jan 6, 2021 at 19:21 | |||||
May 29, 2014 at 13:50 | comment | added | Javier Villanueva |
One issue I've found with this approach is that if you enter the wrong password the error message will persist even if you navigate away from the page and then come back, the simplest way I've found around this is to show the message only if (wp_get_referer() == get_permalink())
|
|
Mar 25, 2014 at 19:45 | history | edited | fuxia♦ | CC BY-SA 3.0 |
Translate and escape the text.
|
Nov 29, 2012 at 15:39 | history | edited | fuxia♦ | CC BY-SA 3.0 |
improved explanation, minimized code
|
Nov 2, 2012 at 12:52 | vote | accept | ogni | ||
Nov 2, 2012 at 12:36 | history | answered | fuxia♦ | CC BY-SA 3.0 |