got the search to work
authorIan Weller <ian@gaslightmedia.com>
Tue, 21 Feb 2017 20:02:21 +0000 (15:02 -0500)
committerIan Weller <ian@gaslightmedia.com>
Tue, 21 Feb 2017 20:02:21 +0000 (15:02 -0500)
I got the search plugin code added and I changed some of the code for
the search form.  Both in the header and the partial, since I screwed it
up the first time.

parts/search-form.php
sections/header.php

index 0a9e8d2..a8b83f3 100644 (file)
@@ -1,4 +1,4 @@
-<form role="search" method="get" class="searchform" action="site-search/">
+<form role="search" method="get" class="searchform" action="<?php echo home_url('/').'site-search/'; ?>">
      <input class="search-input" type="text" placeholder="Search" value="" name="query">
      <input class="search-button button" type="submit" value="Search" name="submit">
 </form>
\ No newline at end of file
index f218198..24166ef 100644 (file)
                         <li><a class="cart" href="#"><img alt="Cart" src="<?php bloginfo('template_url'); ?>/assets/cart-icon.png"> View Cart</a></li>
                         <li><button class="checkout">Checkout</button></li>
                         <li><button class="login">Log In</button></li>
-                        <li><form role="search" method="get" class="searchform show-for-large-up" action="<?php echo home_url('/'); ?>">
-                            <input class="search-input" type="text" placeholder="Search" value="" name="s">
-                            <input class="search-button" type="image" 
-            src="<?php bloginfo('template_url'); ?>/assets/go-search-icon.png" value="submit" name="submit" alt="Go">
+                        <li><form role="search" method="get" class="searchform" action="<?php echo home_url('/').'site-search/'; ?>">
+                             <input class="search-input" type="text" placeholder="Search" value="" name="query">
+                             <input class="search-button" type="image" src="<?php bloginfo('template_url'); ?>/assets/go-search-icon.png" value="submit" name="submit" alt="Go">
                         </form></li>
                     </ul>
                 </div>