public
Last active

Modify the Gravatar size on your site using the Genesis Framework.

  • Download Gist
functions.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?php
//* Do NOT include the opening php tag
 
//* Modify the size of the Gravatar in the author box
add_filter( 'genesis_author_box_gravatar_size', 'custom_author_box_gravatar' );
function custom_author_box_gravatar( $size ) {
return 96;
}
 
//* Modify the size of the Gravatar in the entry comments
add_filter( 'genesis_comment_list_args', 'custom_comments_gravatar' );
function custom_comments_gravatar( $args ) {
$args['avatar_size'] = 96;
return $args;
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.