First pass at better title handling for WordPress 4.1+ with proper back compatibility baked in.

This commit is contained in:
Philip Arthur Moore 2014-11-11 21:41:10 +07:00
parent 23d0a41722
commit 83792b8566
3 changed files with 40 additions and 21 deletions

View file

@ -33,6 +33,14 @@ function _s_setup() {
// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );
/*
* 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' );
/*
* Enable support for Post Thumbnails on posts and pages.
*