changing the search form for the off canvas
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 13 Sep 2017 20:35:51 +0000 (16:35 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 13 Sep 2017 20:35:51 +0000 (16:35 -0400)
adding a different partial for the off canvas so that the search toggle functionality
doesn't affect it

parts/oc-search-form.php [new file with mode: 0644]
sections/off-canvas.php

diff --git a/parts/oc-search-form.php b/parts/oc-search-form.php
new file mode 100644 (file)
index 0000000..0883b8d
--- /dev/null
@@ -0,0 +1,4 @@
+<form role="search" method="get" class="oc-searchform" action="<?php echo home_url('/').'site-search/'; ?>">
+     <input id="oc-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 000bd63..26b6688 100644 (file)
@@ -9,7 +9,7 @@
 </div>
 <div class="off-canvas position-left opensearchserver.ignore" id="offCanvasLeft" data-off-canvas>
     <?php glm_theme_mobile_off_canvas(); ?>
-    <?php get_template_part('parts/search-form');?>
+    <?php get_template_part('parts/oc-search-form');?>
     <ul>
         <li><a href="#">Forum</a></li>
         <li><a href="#">Awards</a></li>