In the past, I wrote an article on displaying social media links after title in Genesis Author Box using custom user profile fields.
Today we will extend it by
- linking the gravatar image to author archive page
- linking the author name to author archive page
- displaying the social media links (whatever have been filled out by the user) below the author bio text
using the genesis_author_box
filter hook in Genesis.
Step 1
Change the size of the Gravatar in the author box using the genesis_author_box_gravatar_size
filter hook.
Genesis Sample sets the size to 90 x 90 by default.
// Modify size of the Gravatar in the author box.
add_filter( 'genesis_author_box_gravatar_size', 'genesis_sample_author_box_gravatar' );
function genesis_sample_author_box_gravatar( $size ) {
// return 90;
return 120;
}
Step 2
Add the following in child theme's functions.php:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.