Forked from nairnwebdesign/genesis-post-titles.php
Last active
August 29, 2015 14:26
-
-
Save iamcanadian1973/c226dbb79c9e37d0eae5 to your computer and use it in GitHub Desktop.
Changing Genesis H1 Post Titles to H2
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
/* | |
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; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment