Skip to content

Instantly share code, notes, and snippets.

@JiveDig
Created September 18, 2017 17:10
Show Gist options
  • Select an option

  • Save JiveDig/262f39337b9590c573b8a94921fbdb25 to your computer and use it in GitHub Desktop.

Select an option

Save JiveDig/262f39337b9590c573b8a94921fbdb25 to your computer and use it in GitHub Desktop.
Force the Genesis site title to use 'p' whenever an 'h1' would be used.
<?php
// Force the site title to use 'p' whenever an 'h1' would be used.
add_filter( 'genesis_seo_title','prefix_force_p_site_title_wrap', 99, 3 );
function prefix_force_p_site_title_wrap( $title, $inside, $wrap ) {
$title = str_replace( '<h1', '<p', $title );
$title = str_replace( '</h1>', '</p>', $title );
return $title;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment