Skip to content

Instantly share code, notes, and snippets.

@nairnwebdesign
Created December 28, 2013 07:35
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nairnwebdesign/8157035 to your computer and use it in GitHub Desktop.
Save nairnwebdesign/8157035 to your computer and use it in GitHub Desktop.
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;
}
@blickwert
Copy link

Thanks :-)

@GeeWhiz
Copy link

GeeWhiz commented Mar 30, 2016

I think you meant to have "<h2" right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment