Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Created October 13, 2015 21:36
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/bc586aed37a420f8256f to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/bc586aed37a420f8256f to your computer and use it in GitHub Desktop.
Edit the author box title with Genesis (advanced version)
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Edit the author box title with Genesis (advanced version)
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/author-box-title/
*/
add_filter( 'genesis_author_box_title', 'rtug_author_box_title_context', 10, 2 );
function rtug_author_box_title_context( $title, $context ) {
if ( 'single' === $context )
$title = str_replace( 'About', 'This post was written by', $title );
return $title;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment