Add avatar to post title in Thesis

/ Published in: PHP
Save to your folder(s)

This CSS is nice to use with this function:
.custom .avatar {float:left; border:3px solid #ddd; margin-right:1em;}

Copy this code and paste it in your HTML
  1. function author_avatar() {
  2. echo get_avatar( get_the_author_id(), 50 );
  3. }
  4. add_action('thesis_hook_before_headline', 'author_avatar');

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.