Created
April 2, 2020 10:57
-
-
Save thecodepoetry/f9d941f662f4cd68f30281c0046daaee to your computer and use it in GitHub Desktop.
Change page title to h2
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
add_filter( 'presscore_page_title', 'dt_set_page_title_to_h2_filter' ); | |
function dt_set_page_title_to_h2_filter( $title ) { | |
return str_replace( array( '<h1', '</h1' ), array( '<h2', '</h2' ), $title ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please try this code in your child theme functions.php to change h1 to h2 in page title