Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Change author box title text in Genesis
<?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