Archived topic
Remove "Protected" from Elements > Header > {{post_title}}
3 replies · Started by Michael on October 29, 2020
I'm using Elements > Header to create a custom header on various pages. However, on password protected pages, the title includes the prefix "Protected:"
Is there a way to remove the "Protected" prefix so that only the page name appears?
Hi there,
try the PHP snippet provided on this stack overflow:
https://stackoverflow.com/a/35602432
Adding PHP:
https://docs.generatepress.com/article/adding-php/
Thank-you! That worked perfectly!
Awesome ! Glad to be of help