-
-
Save billerickson/5de4d266c48e6cfaddce to your computer and use it in GitHub Desktop.
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
<?php | |
/** | |
* Use h1 for site title | |
* @see https://www.billerickson.net/genesis-h1-front-page/ | |
*/ | |
function ea_h1_for_site_title( $wrap ) { | |
return is_front_page() ? 'h1' : $wrap; | |
} | |
add_filter( 'genesis_site_title_wrap', 'ea_h1_for_site_title' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment