Created
February 13, 2015 17:20
-
-
Save jaredatch/1562aa6de1bc33db0bb3 to your computer and use it in GitHub Desktop.
Change author box title text in Genesis
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 | |
/** | |
* Change "About" text in author box titles for single posts | |
* | |
* @since 1.0.0 | |
* @param string $title | |
* @param string $context | |
* @return string | |
*/ | |
function ja_author_box_title( $title, $context ) { | |
if ( 'single' == $context ) { | |
$title = str_replace( 'About', 'Written by', $title ); | |
} | |
return $title; | |
} | |
add_filter( 'genesis_author_box_title', 'ja_author_box_title', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment