Author info

  • ross

    #2114

    I want to change my blog so each post reads “posted by [author’s name]” instead of just “by [author’s name].” Would I need to create a child theme to do this or is there another way? Thanks.

    Anonymous

    #18750

    This change will need to be made in your loop.php file. I’m not sure of the best way to do this without hard coding. So, if you use this method, it WILL need to be redone when you update your theme. (I’m going to be learning about writing functions next week).

    Anways, edit your loop.php file and look for this line of code:

    if (!is_page() && get_post_type($post) != 'page') {
    /* translators: this is for the author byline, such as 'by John Doe' */
    _e('by','graphene'); echo ' <span class="fn nickname">'; the_author_posts_link(); echo '</span>';

    And change it to something like this:

    if (!is_page() && get_post_type($post) != 'page') {
    /* translators: this is for the author byline, such as 'by John Doe' */
    _e('posted by','graphene'); echo ' <span class="fn nickname">'; the_author_posts_link(); echo '</span>';

    I’ll let the mods decide… but I would assume you will want to post questions like this in the “Support” section of the forum in the future.

    Cheers!

    Anonymous

    #18751

    BTW, I do like your site. I just did a presentation to six of the graduate level business classes at my university on Workplace Violence. I wish I had known about your site, as I would have certainly included it in my speech.

    Kudos!

    Admin

    Syahir Hakim

    #18752

    You can do this without editing the theme’s files, by using a child theme. Instructions here:

    https://forum.graphene-theme.com/graphene-support/how-to-change-follow-me-text-on-twitter-widget#post-6298

    ross

    #18753

    Thanks Josh – that worked perfectly.

    Syahir – are you sure that was the right link?

    Admin

    Syahir Hakim

    #18754

    Yep, I’m sure. Where did it lead you to?

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Do NOT follow this link or you will be banned from the site!