Created
October 13, 2015 23:51
-
-
Save reasonstousegenesis/36e89cab59cf754c27eb to your computer and use it in GitHub Desktop.
Edit the author box picture size with Genesis (advanced version)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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