Add cache control variable to default header image
authorLaury GvR <laury@gaslightmedia.com>
Wed, 7 Mar 2018 16:38:13 +0000 (11:38 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 7 Mar 2018 16:38:13 +0000 (11:38 -0500)
functions.php

index 7fb5f80..4526308 100644 (file)
@@ -122,7 +122,7 @@ function glm_get_header() {
             echo ' style="background-image: url('.$image_data[0].');height:0;padding:0;padding-bottom:30%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px; "';
                 echo ' class="featured-image no-featured"';
         } else {
-                echo ' style="background-image: url('.get_template_directory_uri().'/assets/default-header.jpg);height:0;padding:0;padding-bottom:30%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;"';
+                echo ' style="background-image: url('.get_template_directory_uri().'/assets/default-header.jpg?v=1.0);height:0;padding:0;padding-bottom:30%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 300px;"';
                 echo ' class="featured-image no-featured"';
         }
         echo '>';