Site logo

[Resolved] Author Headshot Blurry

Home Forums Support [Resolved] Author Headshot Blurry

Home Forums Support Author Headshot Blurry

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1861643
    Dave

    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>
    #1861659
    Ying
    Staff
    Customer Support

    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 🙂

    #1862596
    Dave

    Thank Ying! Yes, I figured it out right after leaving that note. 🤦 Thanks for following up!

    #1863245
    Ying
    Staff
    Customer Support

    You are welcome 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.