This will still leave the word ‘by’. You’ll either need a Child Theme or a Search & Replace plugin to remove that too.
I will try those, thanks!
1st solution worked great, thanks so much!
@rdellconsulting
I have a child theme, and I want to change the entry-meta to read:
“Article posted in [category] on [date]”
Could you direct me to or walk me through how to do this?
@ssslilla you may need to start a new thread..
@ssslilla:
1)Create a folder named parts in your child theme.
2)Create a file named class-content-post_metas.php and copy the whole code from parent theme’s file class-content-post_metas.php(parts/class-content-post_metas.php).
3)go to lines 76-82 where it says
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' );
}
change it to
if ( $tag_list ) {
$utility_text = __( 'Article posted in %1$s on %3$s ' , 'customizr' );
} elseif ( $categories_list ) {
$utility_text = __( 'Article posted in %1$s on %3$s ' , 'customizr' );
} else {
$utility_text = __( 'Article posted on %3$s ' , 'customizr' );
}
@bravokeyl
AHA! I knew I was missing something! I copied that file into my functions.php and made the suggested changes, but I didn’t see any change on the page.
Now I understand. For any permanent changes like these, I will need to replicate customizr’s file structure in my child theme; so now when it loads the functions, it will read the /parts directory in my child theme first. Brilliant.
I’m sorry I didn’t start an individual post, but I will next time. Thanks so much for your help.