diff --git a/themes/blueprint/templates/layout/layout.phtml b/themes/blueprint/templates/layout/layout.phtml
index 283ac9e339447368df06a2cce296b194b7712787..89cc15048506c65a52b37d1b5c1d179664b21b74 100644
--- a/themes/blueprint/templates/layout/layout.phtml
+++ b/themes/blueprint/templates/layout/layout.phtml
@@ -4,7 +4,6 @@
     <?$this->headThemeResources()?>
     <?=$this->headMeta()?>
     <?=$this->headTitle()?>
-    <?=$this->headStyle()?>
     <?
         // Set up OpenSearch link:
         $this->headLink(
@@ -17,6 +16,7 @@
         );
     ?>
     <?=$this->headLink()?>
+    <?=$this->headStyle()?>
     <?
         // Set global path for Javascript code:
         $this->headScript()->prependScript("path = '" . rtrim($this->url('home'), '/') . "';");
diff --git a/themes/jquerymobile/templates/layout/layout.phtml b/themes/jquerymobile/templates/layout/layout.phtml
index c9aed226ed96a46154114d3eee6bf80942b6a7f0..c9cb2d5d10c7a79b1f56dc8f0338b8c62db11762 100644
--- a/themes/jquerymobile/templates/layout/layout.phtml
+++ b/themes/jquerymobile/templates/layout/layout.phtml
@@ -7,8 +7,8 @@
     <?$this->headThemeResources()?>
     <?=$this->headMeta()?>
     <?=$this->headTitle()?>
-    <?=$this->headStyle()?>
     <?=$this->headLink()?>
+    <?=$this->headStyle()?>
     <?
         // Set global path for Javascript code:
         $this->headScript()->prependScript("path = '" . rtrim($this->url('home'), '/') . "';");