Kaynağa Gözat

Merge pull request #757 from KostasNi/add-theme-support-patch

Move the HTML5 theme support to the appropriate function
Eddie Machado 10 yıl önce
ebeveyn
işleme
566c029879
2 değiştirilmiş dosya ile 8 ekleme ve 7 silme
  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

@@ -213,6 +213,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 */