Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14611 reviews 1734 hosting providers

Questions & Answers

How to remove the automatic private header in WP

Mar 19, 2014 by SunFun
I am using WP with Twenty fourteen theme. I had a big issue in my site that I manages to recover, Now my question is how can I make the private pages that I have not display the word “Private” in the pages headers?
Can anyone please help

1 Answer

0 votes
Mar 19, 2014 by TopNet
locate the file functions.php and add  the following
function titleformat($yourcontent) {
   return '%s';
add_filter('privatetitleformat', 'yourtitleformat');
add_filter('protectedtitleformat', 'yourtitleformat');