Pages

How to remove "This entry was posted in" wordpress Twenty Twelve theme

How to remove "This entry was posted in" from the post below if you are using Twenty Twelve Theme in your wordpress blog.


To remove it, first you go in wordpress admin area, first click “Appearance” and “Editor”. Select and click“Theme Functions (functions.php)” file and search for the code as below,



In the function program code, look for the section:
 // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name. if ( $tag_list ) { $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); } elseif ( $categories_list ) { $utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); } else { $utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); }
-----------------
Make these changes:
-----------------
// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name. if ( $tag_list ) { $utility_text = __( '<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); } elseif ( $categories_list ) { $utility_text = __( '<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); } else { $utility_text = __( '<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); }
Last click "Update File" for everything save.

1 comment: