Created
April 7, 2015 16:22
-
-
Save craigsimps/027954e42a8851beddc3 to your computer and use it in GitHub Desktop.
Filter Genesis h1 entry-title
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
// 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