Created
December 26, 2014 22:23
-
-
Save digisavvy/f32a260bad02faf0f75c to your computer and use it in GitHub Desktop.
Checking for 'title-tag' support
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
// Adding Theme title tag support | |
function digistarter_title_tag_support() { | |
if ( current_theme_supports( 'title-tag' ) ) { | |
add_theme_support('title-tag'); | |
} else { ?> | |
<title><?php wp_title( '|', true, 'right' ); ?></title> | |
<?php } | |
} | |
add_action( 'tha_head_bottom', 'digistarter_title_tag_support'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment