Created
September 18, 2017 17:10
-
-
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.
This file contains hidden or 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 | |
| // 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