An author box will increase the credibility of an article. You can add this at the end of your posts with some simple codes.
The template of a blog post is your single.php file inside your theme folder. Open this file and add this right after the WordPress loop ends:
Make a bit styling using CSS:
- The avatar is taken from Gravatar. So you should go to http://en.gravatar.com/ and make yourself one profile image.
- If you would like to have a custom image which is not taken from Gravatar, check this: Set Custom Avatars for Users in WordPress
- The code will check if there is a description provided because it would not look nice and professional if there is only one box with an avatar and a name. If no description, the author box will not display.
- The theme is using Bootstrap so some classes are inherited from it: the row, card, card-link, and text-center. If you don’t have Bootstrap in your WordPress theme, you need to define the style yourself in the CSS codes.
- The icons for social networks (the <i>) are taken from FontAwesome.
If you are familiar with WordPress, you also can use the_content hook to add the information at the end of a post in functions.php. So the advantage here is that you don’t need to touch the theme’s single.php. This is useful in a child theme if you don’t want to store too many customized files in the child theme folder.