wp/wp-content/themes/twentyfifteen/inc/custom-header.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
--- a/wp/wp-content/themes/twentyfifteen/inc/custom-header.php	Tue Jun 09 11:14:17 2015 +0000
+++ b/wp/wp-content/themes/twentyfifteen/inc/custom-header.php	Mon Oct 14 17:39:30 2019 +0200
@@ -133,7 +133,14 @@
 		if ( ! empty( $header_image ) ) :
 	?>
 		.site-header {
-			background: url(<?php header_image(); ?>) no-repeat 50% 50%;
+
+			/*
+			 * No shorthand so the Customizer can override individual properties.
+			 * @see https://core.trac.wordpress.org/ticket/31460
+			 */
+			background-image: url(<?php header_image(); ?>);
+			background-repeat: no-repeat;
+			background-position: 50% 50%;
 			-webkit-background-size: cover;
 			-moz-background-size:    cover;
 			-o-background-size:      cover;
@@ -142,7 +149,14 @@
 
 		@media screen and (min-width: 59.6875em) {
 			body:before {
-				background: url(<?php header_image(); ?>) no-repeat 100% 50%;
+
+				/*
+				 * No shorthand so the Customizer can override individual properties.
+				 * @see https://core.trac.wordpress.org/ticket/31460
+				 */
+				background-image: url(<?php header_image(); ?>);
+				background-repeat: no-repeat;
+				background-position: 100% 50%;
 				-webkit-background-size: cover;
 				-moz-background-size:    cover;
 				-o-background-size:      cover;