Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Customize the author box on your site using the Genesis Framework.

View functions.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?php
//* Do NOT include the opening php tag
//* Remove 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 author box title
add_filter( 'genesis_author_box_title', 'bg_author_box_title' );
function bg_author_box_title() {
return '<strong>About the Author</strong>';
}
//* Modify the size of the Gravatar in author box
add_filter( 'genesis_author_box_gravatar_size', 'bg_author_box_gravatar_size' );
function bg_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
Something went wrong with that request. Please try again.