Skip to content

Instantly share code, notes, and snippets.

@WebEndevSnippets
Created March 21, 2014 16:13
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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