Support » Themes and Templates » Remove "protected"&"private" from titles

Remove "protected"&"private" from titles

  • I wish to remove the words “protected” or “private” that appear in my titles.
    I have tried a few recommendations from other forums but did not succeed. Can someone help? Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi fountaini,

    Can you provide link your website where its appearing above issue so that we can have look at it?


    Hi Rabin,

    my site is http://www.chezfountain.com
    Thanks for your help.

    Hi fountaini,

    copy this function and paste it in your functions.php

    add_filter( 'protected_title_format', 'remove_protected_text' );
    function remove_protected_text() {
    	return __('%s');

    I suggest you to go through child theme approach as the changes will not be lost when you update your theme.


    Thank you Rabin. I copied this function into my theme custom css and it didn’t work. I am using wordpress.com (not org) and I seem to be very limited with customization.
    Do you have any advice apart from transferring to wordpress.org?

    Moderator Andrew Nevins


    Forum moderator

    For WordPress.com support: http://en.support.wordpress.com

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove "protected"&"private" from titles’ is closed to new replies.