Changing Meta Without Duplicating Entire File?
-
I wanted to change how the post meta data is displayed, so I duplicated the entire class-content-post_metas.php file inside the child theme, placing it here:
/themes/customizr-child/parts/class-content-post_metas.php
What I want to do is change this
// 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>.' , 'customizr' ); } elseif ( $categories_list ) { $utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.' , 'customizr' ); } else { $utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.' , 'customizr' ); } $utility_text = apply_filters( 'tc_meta_utility_text', $utility_text );
into this:
// 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> on %3$s<br />Categories: %1$s ?| Tags: %2$s' , 'customizr' ); } elseif ( $categories_list ) { $utility_text = __( '<span class="by-author"> By %4$s</span> on %3$s<br />Categories: %1$s' , 'customizr' ); } else { $utility_text = __( '<span class="by-author"> By %4$s</span> on %3$s' , 'customizr' ); } $utility_text = apply_filters( 'tc_meta_utility_text', $utility_text );
Is there a way to do this via the functions.php in the child theme?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Changing Meta Without Duplicating Entire File?’ is closed to new replies.