How to change “By” Author text in the post sub title

Home Forums Using Thematic ( without a child theme ) How to change “By” Author text in the post sub title

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  oims4 6 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #744


    Hey All, I want to change the text in the post subtitle to read “Published By Author” instead of “By Author”. Does anyone have any suggestions??? I’m publishing artwork by artists form all over Los Angeles County and at present it looks like the publisher is the creator of the artwork. Visit to view an example. Thanks ! oims4



    same way you change anything else.  browse through the extensions folder. identify the function that is generating the output you’d like to change.  decide whether it makes more sense to filter or use the childtheme_overrides

    in your case:  content-extensions.php reveals that the thematic_postmeta_authorlink() is where the “By” text is coming from.  pro tip: if you don’t know, use notepad++ or sublime text (some text editor more advanced than notepad) to search the entire thematic folder for the CSS id or class markers.  those don’t typically change.

    b/c the authorlink looks  a little complex there is no easy way to change only the By word i’d suggest using the override.

    function childtheme_override_some_function(){
    echo “bacon”;

    if the code says that if(function_exists(‘childtheme_override_some_function’)) then the override automatically takes the place of the thematic_some_function() function…  you can see t his at work through the extensions folder.

    so back to your case…

    thematic_postmeta_authorlink() {
    global $authordata;
    $author_open = ‘<span class=”meta-prep meta-prep-author”>’ . __(‘Published By ‘, ‘childtheme’) . ‘</span>’; //only need to bother changing the text domain if you are need to worry about loading proper translations
    $author_close = ‘</span>’;
    if ( thematic_is_custom_post_type() && !current_theme_supports( ‘thematic_support_post_type_author_link’ ) ) {
    $author_info = ‘<span class=”vcard”><span class=”fn nickname”>’;
    $author_info .= get_the_author_meta( ‘display_name’ ) ;
    $author_info .= ‘</span></span>’;
    } else {
    $author_info = ‘<span class=”author vcard”>’. ‘<a class=”url fn n” href=”‘;
    $author_info .= get_author_posts_url( $authordata->ID, $authordata->user_nicename );
    $author_info .= ‘” title=”‘ . __( ‘View all posts by ‘, ‘thematic’ ) . get_the_author_meta( ‘display_name’ ) . ‘”>’;
    $author_info .= get_the_author_meta( ‘display_name’ ) . ‘</a>’;
    $author_credit = $author_open . $author_info . $author_close ;
    return apply_filters(‘thematic_post_meta_authorlink’, $author_credit);




    helgatheviking, thanks you! I will study your code! –

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘How to change “By” Author text in the post sub title’ is closed to new replies.