Hi,
This requires some changes to the php code. If you are comfortable doing so, here are some steps you can follow:
1. Copy the original php code of function twentytwelve_entry_meta() into your empty child theme’s functions.php template.
2. In the template file in your child theme just modified in number 1 above, insert the following line of code:
if ( ! function_exists( 'twentytwelve_entry_meta()' ) ) {
between the opening <?php tag and the line that says:
function twentytwelve_entry_meta() {
It should then look like this:
<?php
if ( ! function_exists( 'twentytwelve_entry_meta()' ) ) {
function twentytwelve_entry_meta() {
3. 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' );
}
and 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' );
}
4. Last, and extremely important, add another } (a closing bracket) just above the ?> (closing php tag at the bottom).