Archived topic
Author Headshot Blurry
3 replies · Started by Dave on July 19, 2021
Hi Guys,
I have a headshot in two places on my posts: one at the top next to the byline, and one down below in an About the Author bio.
I just noticed that the second headshot, at the bottom, is quite blurry and pixelated. Is a new development and wasn't the case just a day or two ago. Not sure what's going on, but I'm wondering if you can spot any issues.
Here's the code I use for the hook that pulls the image into the post template:
echo get_avatar( get_the_author_email(), '50' ); }
?>
Hi Dave,
Seems you've figured it out?
The code you are using grabs the 50pxwidth avatar.
You just need to change the 50to a higher value like 110.
<?php if (function_exists('get_avatar')) {
echo get_avatar( get_the_author_email(), '110' ); }
?>
Let me know if you need further assistance :)
Thank Ying! Yes, I figured it out right after leaving that note. 🤦 Thanks for following up!
You are welcome :)