View Single Post
Old November 7th, 2012, 10:32 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
Join Date: Feb 2008
Posts: 16,902


You can create a new widget, add a text module to that widget with the following code:
HTML Code:
<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">
  <form method="get" action="">
	  [search.word onfocus='wash(this);' onblur='checkWash(this);' value='Search store...']
	  <input type="hidden" name="saleprice" value="1-" />
	  [search.submit title='Go']
Make sure you change to your site's search page.

Then add that new widget to only your search page using the Widget Context plugin.