Hi,
I want this author image and name to come in this style http://www.screencast.com/t/mJziJyrNk
can you let me know what code i have to add ???
thanks
bharath
Probably need to edit the single post template you’re using and move that section from bottom of template to top and experiment with that. For circle image you’d need to add CSS to make a round mask.
If you don’t know how to do any of that you might have to hire a developer.
Tagdiv support back on Monday might give more specific answer.
Hi,
You will need to use a plugin for your avatar like WP User Avatar and add an image to your profile.
And in your post template add this code(here you can find more info – https://codex.wordpress.org/Function_Reference/get_avatar) to display avatar next to Author: http://screencast.com/t/N0WFxDIPYN
get_avatar(get_the_author_meta( 'ID' ), 32 ) .
And use this custom css in Theme Panel to add radius: http://screencast.com/t/cMnzCUPotb
.single .meta-info .avatar {
border-radius: 100px;
}
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
Thanks @Chris i have got the solution for the author image
@Alin
It worked fine, but i have one issue, this avatar is general image for all the post, but i want to post avatar of my authors who post in our website, is it possible to get the avatar from the Gravatar.com to that position that i have mentioned or is there any alternative way to deal with this issue??
http://www.screencast.com/t/ZKFEvQiIu
Regards
Bharath
And also i want to this avatar to be visible on Small screen
Hi,
Every author can set an avatar from profile – http://screencast.com/t/epXydeKmLN
Also the avatar is visible on small screen: http://screencast.com/t/fyamPY5c6
Thanks!
Hi Tony,
I have added your suggestion on our list, but the designers will take the final decision regarding this, so I cannot promise anything.
Thanks!
Some info on how to do clips/masks – just follow the examples to experiment:
http://www.html5rocks.com/en/tutorials/masking/adobe/
Hi,
You can add border radius to the author image and also a shadow, for example – http://screencast.com/t/02GkiQq8mE2z
.td-module-meta-info .avatar {
border-radius: 100%;
-webkit-box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
-moz-box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
}
Thanks!
Hi,
Please try this custom css – http://screencast.com/t/iQ3vrHns
.author-box-wrap .avatar {
border-radius: 100%;
-webkit-box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
-moz-box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
}
Thanks!
If someone is reading this post and want to experiment with autor pic. You can also try following custom CSS code:
.author-box-wrap .avatar {
border-radius: 100%;
border: 5px solid #FFF;
-moz-box-shadow: 0 1px 3px 0 rgba(5,5,5,0.25);
-webkit-box-shadow: 0 1px 3px 0 rgba(5,5,5,0.25);
box-shadow: 0 1px 3px 0 rgba(5,5,5,0.25);
}
This will create a nice white border around your author.
NOTE: this will not change the pic styling in comments section, the above code is only for single post author pic.
Try and see.
If someone knows which section I need to add code to change the style of comments avatar, please do share
Regards
Siraj
Hi,
Try this code in for comment section – http://screencast.com/t/LfnDfryD
.comment .avatar {
border-radius: 100%;
border: 5px solid #FFF;
-moz-box-shadow: 0 1px 3px 0 rgba(5,5,5,0.25);
-webkit-box-shadow: 0 1px 3px 0 rgba(5,5,5,0.25);
box-shadow: 0 1px 3px 0 rgba(5,5,5,0.25);
}
Thanks!
i’ve done this using “loop-single.php” and it’s working fine in desktop using this css and code
loop-single.php edit code :
<div class=”td-module-meta-info”>
<?php echo get_avatar(get_the_author_meta(’email’, $author_id), ’45’) . $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<?php echo $td_mod_single->get_comments();?>
<?php echo $td_mod_single->get_views();?>
</div>
edit css :
” .avatar {
border-radius: 999px;
}
”
But when i add the same code in “/mobile/single.php” then

Please tell me css for mobile theme.
Hello Salyan,
You can send us an email at contact@tagdiv.com with your log-in information (wp-admin) so I can further inspect your problem. Please tell us again there which is your problem so we can know this.
Thanks.