Site logo

[Resolved] Remove “Protected” from Elements > Header > {{post_title}}

Home Forums Support [Resolved] Remove “Protected” from Elements > Header > {{post_title}}

Home Forums Support Remove “Protected” from Elements > Header > {{post_title}}

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1509817
    Michael

    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?

    #1510040
    David
    Staff
    Customer Support

    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/

    #1510911
    Michael

    Thank-you! That worked perfectly!

    #1511208
    David
    Staff
    Customer Support

    Awesome ! Glad to be of help

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.