Skip to content
Permalink
Browse files

added theme support for title tag.

Let WordPress manage the document title. By adding theme support, we declare that this theme does not use a hard-coded <title> tag in the document head, and expect WordPress to provide it for us.
  • Loading branch information
maavuz committed Feb 16, 2016
1 parent cb32614 commit 71d9ef1169b96ca70345e2de112499e923e12eb6
Showing with 10 additions and 1 deletion.
  1. +10 −1 functions.php
@@ -38,6 +38,15 @@ function casper_setup() {
* @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
*/
add_theme_support( 'post-thumbnails' );

/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded <title> tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support( 'title-tag' );


// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
@@ -231,4 +240,4 @@ function casper_customizer_head() {
}
endif; // casper_customizer_head
add_action( 'wp_head', 'casper_customizer_head' );
?>
?>

0 comments on commit 71d9ef1

Please sign in to comment.
You can’t perform that action at this time.