Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created October 13, 2015 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reasonstousegenesis/36e89cab59cf754c27eb to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/36e89cab59cf754c27eb to your computer and use it in GitHub Desktop.
Edit the author box picture size with Genesis (advanced version)
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Edit the author box picture size with Genesis (advanced version)
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/author-box-gravatar-size/
*/
add_filter( 'genesis_author_box_gravatar_size', 'rtug_author_box_gravatar_size_context', 10, 2 );
function rtug_author_box_gravatar_size_context( $gravatar_size, $context ) {
if ( 'archive' === $context )
$gravatar_size = 250;
return $gravatar_size;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment