Adding Avatar to Byline

Community Forums Forums Design Tips and Tricks Adding Avatar to Byline

This topic is: not resolved

This topic contains 4 replies, has 3 voices, and was last updated by  braddalton 7 months, 3 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #35032

    RobBerger
    Participant
    Post count: 6

    I’d like to add the author’s avatar to the byline of each article, much like the Genesis Feature Post plugin does for the home page.  I’ve searched the forum for how to do this, but no luck.  Any help would be appreciated.

    #35042

    braddalton
    Participant
    Post count: 9722

    Try this for starters Rob.

    It’s tested but it displays on archive pages as well as single posts.

    This code displays the author avatar on single posts only.

    Simply change the value of 40 to change the size of the avatar:

    Code not displaying? Grab it from Github https://gist.github.com/braddalton/5373941

    I’m sure there’s other ways to do this by filtering genesis post info and using Genesis Simple Edits.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #35817

    RobBerger
    Participant
    Post count: 6

    Thanks.  I’ll give it a try.

    #87273

    handsome jack
    Member
    Post count: 5

    Hey @braddalton,

    Awesome snippet. Is there a way for that same avatar to serve as a link to all posts by that author?

    #87427

    braddalton
    Participant
    Post count: 9722

    Try this http://codex.wordpress.org/Function_Reference/the_author


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

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

You must be logged in to reply to this topic.