Show Avatar image before the Author Name in Astra theme

Do you want to display the author image next to the author name in the post meta area under the post title in the Astra theme? By default, only the text-only author name display in that location. However, using a few lines of code can help you add author image next to the author name.

Preview: Avatar photo next to the Author Name

Author avatar

PHP Snippet: Add the Author Image

In the WordPress Dashboard, go to Appearance > Theme Editor and open the functions.php file of your Astra chid theme. Then add the following code at the end. Alternatively, you can use code snippets plugin for adding custom code.

Share this Tutorial

Leave a Comment