Added opensearch functionality to header search
authorLaury GvR <laury@gaslightmedia.com>
Tue, 19 Jul 2016 14:07:27 +0000 (10:07 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 19 Jul 2016 14:11:32 +0000 (10:11 -0400)
Search.php changed to send its form to site-search, and to have
as input a name of 'query' rather than 's'.

parts/search.php

index 48986e7..9ef27d2 100644 (file)
@@ -1,4 +1,4 @@
-<form role="search" method="get" id="searchform" action="<?php echo home_url('/'); ?>">
-     <input class="search-input" type="text" placeholder="Search" value="" name="s" id="lar-search">
+<form role="search" method="get" id="searchform" action="<?php echo home_url('/').'site-search/'; ?>">
+     <input class="search-input" type="text" placeholder="Search" value="" name="query" id="lar-search">
      <input id="offSearchButton" class="button small-centered" type="submit" value="Search">
 </form>
\ No newline at end of file