Skip to content

Commit c7155cf

Browse files
committed
Moved title-tag theme support declaration
1 parent 961f2eb commit c7155cf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

functions.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ function decode_setup() {
4040
// Add default posts and comments RSS feed links to head.
4141
add_theme_support( 'automatic-feed-links' );
4242

43+
/*
44+
* Let WordPress manage the document title.
45+
* By adding theme support, we declare that this theme does not use a
46+
* hard-coded <title> tag in the document head, and expect WordPress to
47+
* provide it for us.
48+
*/
49+
add_theme_support( 'title-tag' );
50+
4351
// Set up the WordPress core custom header feature.
4452
$args = array(
4553
'default-image' => '',
@@ -94,14 +102,6 @@ function decode_setup() {
94102
);
95103
$args = apply_filters( 'decode_post_formats_args', $args );
96104
add_theme_support( 'post-formats', $args );
97-
98-
/*
99-
* Let WordPress manage the document title.
100-
* By adding theme support, we declare that this theme does not use a
101-
* hard-coded <title> tag in the document head, and expect WordPress to
102-
* provide it for us.
103-
*/
104-
add_theme_support( 'title-tag' );
105105
}
106106
endif; // decode_setup
107107
add_action( 'after_setup_theme', 'decode_setup' );

0 commit comments

Comments
 (0)