View Single Post
Old January 20th, 2015, 11:00 AM
yankeestonk yankeestonk is offline
Join Date: Jun 2013
Posts: 605

I only see the one, does the below look correct to you? The one I'd be changing is the one in wordress widget. Also, can it search both title and description for name. I'm not sure if that's what you meant by not possible.

<script type="text/javascript">
* NOTE: This JS code would be much better off
* existing in your theme's header.php file.
function wash( anInput ) { if(anInput.value == anInput.defaultValue) anInput.value = ''; }
function checkWash( anInput ) { if(anInput.value == '') anInput.value = anInput.defaultValue; }

<div class="store_search_form">
[ onfocus='wash(this);' onblur='checkWash(this);' value='Refine search...']
[search.submit title='Go']
<input type="checkbox" name="saleprice" value="1-" />On Sale

...and this is the code in the widget area of my wordpress site!

<form role="search" method="get" id="searchform" class="search-form" action="/store/search/">
<div><label class="screen-reader-text" for="s">Search for:</label>
<input class="search-field" type="text" name="name" id="s" value="<?php echo esc_attr( @$_GET['word'] ); ?>">
<input class="search-submit" type="submit" id="searchsubmit" value="Search"><input name="saleprice" value="1-" type="checkbox"><strong style="color:#fff;margin-top: 5px; display: inline-table; margin-left: 5px; float: left;">On sale</strong>

Last edited by yankeestonk : January 20th, 2015 at 11:02 AM.