Skip to content

Instantly share code, notes, and snippets.

@vfontjr
Created May 4, 2020 19:13
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 vfontjr/83f50d814bf1eac800af8f836c65afd3 to your computer and use it in GitHub Desktop.
Save vfontjr/83f50d814bf1eac800af8f836c65afd3 to your computer and use it in GitHub Desktop.
<?php
/* Customize the author box title
add_filter( 'genesis_author_box_title', 'custom_author_box_title' );
function custom_author_box_title() {
return 'About the Author';
}
<?php
//* Customize the author box title
add_filter( 'genesis_author_box_title', 'vmf_custom_author_box_title' );
function vmf_custom_author_box_title() {
if ( is_single() ) {
$author = get_the_author();
$author_link = '' . $author . '';
return 'About ' . $author_link . '';
} else {
$author = get_the_author();
return 'About ' . $author . '';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment