Add avatar before Post title on homepage

Community Forums Forums General Discussion Add avatar before Post title on homepage

This topic is: not resolved

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  nutsandbolts 10 months, 4 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #65231

    nkeat
    Participant
    Post count: 2

    Hello, I was wondering what the proper way (in Genesis 2.0) to add the authors avatar before the post title (same line just aligned left before title) on the homepage.

    If I add it to the genesis_entry_header in simple hooks it adds it after.

    Was using something like this:

    <?php if(is_front_page() ) { ?><div class=”avatarp”><?php echo get_avatar( get_the_author_meta( ‘ID’ ), 100 ); ?></div><?php } ?>

    Thanks!

    #75464

    nutsandbolts
    Moderator
    Post count: 3137

    Did you get this resolved? I would think you could add a float: left; to the div class in your stylesheet, but it’s hard to know without seeing it on the site. If you still need help, let us know!


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

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

You must be logged in to reply to this topic.