Site logo

Archived topic

Author Headshot Blurry

3 replies · Started by Dave on July 19, 2021

Viewing posts 1–4 of 4

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:

<?php if (function_exists('get_avatar')) {
echo get_avatar( get_the_author_email(), '50' ); }
?>

<h3>About <?php the_author_posts_link(); ?></h3> <p>Irreverent Gent founder Dave Bowden is a men’s style specialist, an Amazon bestselling author, an unrepentant introvert, a long-suffering (but very patient) Toronto sports fan and the husband of a wonderful (and thankfully even more patient) wife.</p>

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 :)

This archived topic is closed to new replies.