Skip to content

Instantly share code, notes, and snippets.

@craigsimps
Created April 7, 2015 16:22
Show Gist options
  • Save craigsimps/027954e42a8851beddc3 to your computer and use it in GitHub Desktop.
Save craigsimps/027954e42a8851beddc3 to your computer and use it in GitHub Desktop.
Filter Genesis h1 entry-title
// Filter Post/ Page Title
add_filter( 'genesis_post_title_output', 'filter_post_title_output', 15 );
function filter_post_title_output( $title ) {
if ( is_home() ) {
$title = sprintf( '<h1 class="entry-title"><span>%s</span></h1>', apply_filters( 'genesis_post_title_text', get_the_title() ) );
}
return $title;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment