Our Goal is to turn a page that looks like this:
To a page that looks like this:

What file to do you edit?
- in the wp-includes folder
- “post-template.php” file arount line 111 (See images below for reference)
Original Code Unedited:
Full original code: begins Line 111
if ( !is_admin() ) {
if ( !empty($post->post_password) ) {
$protected_title_format = apply_filters('protected_title_format', __('Protected: %s'));
$title = sprintf($protected_title_format, $title);
Final Edited Code: begins Line 111
if ( !is_admin() ) {<IMG SRC=http://www.yourdomain.com/img/padlock.gif id=no>
if ( !empty($post->post_password) ) {
$protected_image_title = "";
$protected_title_format = apply_filters('protected_title_format', __('%s'));
$titles = sprintf($protected_title_format, $title);
$title = "$protected_image_title $titles";
// $protected_title_format = apply_filters('protected_title_format', __('Protected: %s'));
// $title = sprintf($protected_title_format, $title);
The same thing will work with the “Private:” pages, but i wasn’t concerned with those.
you might also like...

brought to you by YARPP.



