WordPress.org

Ready to get started?Download WordPress

Forums

Clean Retina
[closed] Remove "protected"&"private" from titles (6 posts)

  1. fountaini
    Member
    Posted 1 year ago #

    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.

  2. robin90
    Member
    Posted 1 year ago #

    Hi fountaini,

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

    Rabin

  3. fountaini
    Member
    Posted 1 year ago #

    Hi Rabin,

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

  4. robin90
    Member
    Posted 1 year ago #

    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.

    Regards,
    Rabin

  5. fountaini
    Member
    Posted 1 year ago #

    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?
    Thanks
    Ingrid.

  6. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic