diff --git a/lib/extras.php b/lib/extras.php index 994ff30..a7b2821 100644 --- a/lib/extras.php +++ b/lib/extras.php @@ -6,17 +6,3 @@ function roots_excerpt_more() { return ' … ' . __('Continued', 'roots') . ''; } add_filter('excerpt_more', 'roots_excerpt_more'); - -/** - * Manage output of wp_title() - */ -function roots_wp_title($title) { - if (is_feed()) { - return $title; - } - - $title .= get_bloginfo('name'); - - return $title; -} -add_filter('wp_title', 'roots_wp_title', 10); diff --git a/lib/init.php b/lib/init.php index a2ba3b1..d9da7db 100644 --- a/lib/init.php +++ b/lib/init.php @@ -7,6 +7,10 @@ function roots_setup() { // Community translations can be found at https://github.com/roots/roots-translations load_theme_textdomain('roots', get_template_directory() . '/lang'); + // Enable plugins to manage the document title + // http://codex.wordpress.org/Function_Reference/add_theme_support#Title_Tag + add_theme_support('title-tag'); + // Register wp_nav_menu() menus // http://codex.wordpress.org/Function_Reference/register_nav_menus register_nav_menus(array( diff --git a/templates/head.php b/templates/head.php index a5ed07e..d081d0c 100644 --- a/templates/head.php +++ b/templates/head.php @@ -3,7 +3,6 @@
-