Skip to content

Instantly share code, notes, and snippets.

@wpsmith
Created May 2, 2012 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wpsmith/2576267 to your computer and use it in GitHub Desktop.
Save wpsmith/2576267 to your computer and use it in GitHub Desktop.
Filter Author Box
<?php
add_filter( 'genesis_author_box', 'wps_author_box', 10, 6 );
/*
* Filters author box
*/
function wps_author_box( $output, $context, $pattern, $gravatar, $title, $description ) {
$pattern = $context == 'single' ? '<div class="author-box"><div>%s %s<br />%s<br />%s</div></div><!-- end .authorbox-->' : '<div class="author-box">%s<h1>%s</h1><div>%s<br />%s</div></div><!-- end .authorbox-->';
$link = ''; //HTML Markup
return sprintf( $pattern, $gravatar, $title, $description, $link );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment