Code Snippet
Change Avatar Size
The wp_list_comments function has a parameter to change the default (48px) size to anywhere between 0 and 80px.
wp_list_comments('avatar_size=80');
The wp_list_comments function has a parameter to change the default (48px) size to anywhere between 0 and 80px.
wp_list_comments('avatar_size=80');
Though you may use css for that.
CSS is going to scale the img, which will pixelate it. This technique fetches an img sized the way you want it, which is the better way to go.
I wish I’d found this site before, there is great information. I was looking for this code
Ahh.. so easy… why didn’t i get this two weeks earlier :)
Where does this go? In CSS? In comments.php? Somewhere else?
You would place this in the function that is displaying your comments. (In comments.php)
Example:
Good luck!
Will this work with .comments TD?
how i can change align of my avatars
In the stylesheet, of course
I spent so much time trying to figure the resize out. Thank you for your help, Josh!
DigWP
A book and blog co-authored by Jeff Starr and myself about the World's most popular publishing platform.
Quotes on Design
Design, like Art, can be an elusive word to define and an awfully fun thing to have opinions about.
HTML-Ipsum
One-click copy to clipboard access to Lorem Ipsum text that comes wrapped in a variety of HTML.
Bookshelf
Hey Chris, what books do you recommend? These, young fertile mind, these.