Tagged: ,

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

    Hi there,
    is it possible to display an avatar next to the posts? So not next to the comments?
    Best wishes, Tom

    #221992

    Hi!

    Can you create a mock-up of what would you want to achieve? also, a link to your website would be helpful.

    Best regards,
    Josue

    #222092

    Hi Josue,

    I mad a first mock-up. You can find it under http://kunden.kaundvau.de/JoergWalter/140211_JW_Avatar.jpg
    Is it also possible to hide the blue rectangles?

    The blog runs under http://www.projekt-und-innovation.de/index.php/blog/

    Best regards, Tom

    #222158

    Hey!

    Please edit includes > format-standard.php, find this code on line 4:

    <div class='post-entry'>
    

    Below, add this code:

    <?php $gravatar = "";
    
                    $gravatar = get_avatar( get_the_author_meta('email'), '81', "blank" );
    				$author = get_author_posts_url( get_the_author_meta( 'ID' ) );
    
                    echo "<a href='".$author."' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>";
    			?>

    Add this on Quick CSS to position the gravatar correctly:

    .post-author-format-type {
    position: absolute;
    width: 50px;
    height: 50px;
    top: -30px;
    }
    
    .one.unit.alpha.blog-meta.meta-color {
    border: none;
    }
    
    .post-format.primary-background.flag {
    display: none;
    }

    Best regards,
    Ismael

    #223705

    Hey Ismael,

    thank you very much. Great job and quick answered.

    Best regards, Tom

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

The topic ‘Avatar next to post’ is closed to new replies.