Created
October 13, 2015 14:23
-
-
Save jdelia/05198c410f4c81097276 to your computer and use it in GitHub Desktop.
Filter the site title wrap tag if using front page and static home and blog page and not using the blog template - correct issue with Genesis 2.2.3
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
// Filter the site title wrap tag if using front page and static home and blog page | |
// and not using the blog template - correct issue with Genesis 2.2.3 | |
add_filter('genesis_site_title_wrap','sjd_filter_site_title'); | |
function sjd_filter_site_title( $wrap ) { | |
//* Wrap homepage site description in h1 tags if static front page | |
return is_front_page() && ! is_home() ? 'h1' : $wrap; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment