iamcanadian1973
7/28/2015 - 10:44 PM

Changing Genesis H1 Post Titles to H2

Changing Genesis H1 Post Titles to H2

/*
Changing Genesis H1 Post Titles to H2
*/
 
add_filter( 'genesis_post_title_output', 'ac_post_title_output', 15 );
 
function ac_post_title_output( $title )
{ if ( is_home() || is_archive() )
$title = sprintf( '<h1 class="entry-title"><a href="' . get_permalink() . '">%s</a></h1>', apply_filters( 'genesis_post_title_text',get_the_title() ) );
return $title;
}