Last active
December 10, 2015 04:28
-
-
Save GaryJones/4381230 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
// Remove the author box on single posts | |
remove_action( 'genesis_after_post', 'genesis_do_author_box_single' ); | |
// Display author box on single posts | |
add_filter( 'get_the_author_genesis_author_box_single', '__return_true' ); | |
// Display author box on archive pages | |
add_filter( 'get_the_author_genesis_author_box_archive', '__return_true' ); | |
// Modify the author box title | |
add_filter( 'genesis_author_box_title', 'custom_author_box_title' ); | |
function custom_author_box_title() { | |
return '<strong>About the Author</strong>'; | |
} | |
// Modify the size of the Gravatar in the author box | |
add_filter( 'genesis_author_box_gravatar_size', 'custom_author_box_gravatar_size' ); | |
function custom_author_box_gravatar_size( $size ) { | |
return 80; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment