فهرست منبع

Merge pull request #592 from Automattic/fixes/591-photos-header

Photos: Fix issues introduced to custom header
Laurel 6 سال پیش
والد
کامیت
7c07f1e833
2فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 5 0
      photos/functions.php
  2. 1 0
      photos/inc/custom-header.php

+ 5 - 0
photos/functions.php

@@ -231,6 +231,11 @@ require get_template_directory() . '/inc/logo-resizer.php';
  */
 require get_template_directory() . '/inc/jetpack.php';
 
+/**
+ * Load Custom Header funtionality.
+ */
+require get_template_directory() . '/inc/custom-header.php';
+
 /**
  * SVG icons functions and filters.
  */

+ 1 - 0
photos/inc/custom-header.php

@@ -25,6 +25,7 @@ function photos_custom_header_setup() {
 		'height'                 => 400,
 		'flex-height'            => true,
 		'flex-width'             => true,
+		'wp-head-callback'       => 'photos_header_style'
 	) ) );
 }
 add_action( 'after_setup_theme', 'photos_custom_header_setup' );