Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created April 30, 2015 14:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save billerickson/e8a1e7a4d79514d888eb to your computer and use it in GitHub Desktop.
<?php
/**
* Use h1 for site title
*
*/
function ea_front_page_h1( $title, $inside, $wrap ){
$wrap = 'h1';
$title = genesis_html5() ? sprintf( "<{$wrap} %s>", genesis_attr( 'site-title' ) ) : sprintf( '<%s id="title">%s</%s>', $wrap, $inside, $wrap );
$title .= genesis_html5() ? "{$inside}</{$wrap}>" : '';
return $title;
}
add_filter( 'genesis_seo_title', 'ea_front_page_h1', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment