ソースを参照

Move the HTML5 theme support to the appropriate function

Kostas Nicolacopoulos 10 年 前
コミット
6d1e41f099
2 ファイル変更8 行追加7 行削除
  1. 0 7
      functions.php
  2. 8 0
      library/bones.php

+ 0 - 7
functions.php

@@ -244,11 +244,4 @@ function bones_fonts() {
 
 add_action('wp_enqueue_scripts', 'bones_fonts');
 
-// Enable support for HTML5 markup.
-	add_theme_support( 'html5', array(
-		'comment-list',
-		'search-form',
-		'comment-form'
-	) );
-
 /* DON'T DELETE THIS CLOSING TAG */ ?>

+ 8 - 0
library/bones.php

@@ -215,6 +215,14 @@ function bones_theme_support() {
 			'footer-links' => __( 'Footer Links', 'bonestheme' ) // secondary nav in footer
 		)
 	);
+
+	// Enable support for HTML5 markup.
+	add_theme_support( 'html5', array(
+		'comment-list',
+		'search-form',
+		'comment-form'
+	) );
+
 } /* end bones theme support */