Created
October 13, 2015 21:36
-
-
Save reasonstousegenesis/bc586aed37a420f8256f to your computer and use it in GitHub Desktop.
Edit the author box title 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 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