Skip to content

Instantly share code, notes, and snippets.

@billerickson billerickson/front-page.php Secret
Last active Apr 20, 2019

Embed
What would you like to do?
<?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
You can’t perform that action at this time.