Skip to content

Instantly share code, notes, and snippets.

@WebEndevSnippets
Created March 21, 2014 16:13
Show Gist options
  • Save WebEndevSnippets/9689738 to your computer and use it in GitHub Desktop.
Save WebEndevSnippets/9689738 to your computer and use it in GitHub Desktop.
Genesis: Filter H1 post title output
add_filter( 'genesis_post_title_output', 'we_post_title_output', 15 );
/**
* Filter H1 post title to add Font Awesome Styling
*
*/
function we_post_title_output( $title ) {
if ( is_page( 22 ) )
$title = sprintf( '<h1 class="entry-title"><i class="fa fa-cog"></i> %s</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