View Single Post
  #1  
Old June 16th, 2011, 01:08 PM
patagonia patagonia is offline
 
Join Date: May 2009
Posts: 506
Default Search Form layout

I want the search form to look nicer, as per a StudioPress template I am using.
I have changed the default code from this:

PHP Code:
<div class="store_search_form">
  [
search.form]
  [
search.word onfocus='wash(this);' onblur='checkWash(this);' value='Search store...']
  [
search.submit title='Go']
  [/
search.form]
</
div>&#8203; 
To this:

PHP Code:
<div class="searchform">
  [
search.form]
  [
search.word onfocus='wash(this);' onblur='checkWash(this);' value='Search store...']
  <
input type="submit" class="searchsubmit" value="Go" />
  [/
search.form]
</
div>&#8203; 
Which is almost correct. However I am just missing the "class=s" attribute on the input line, as per the default StudioPress search function below:

PHP Code:
<input type="text" value="'. $search_text .'" name="s" class="s"'. $onfocus . $onblur .' /> 
How can I add the class=s to this part:
PHP Code:
[search.word onfocus='wash(this);' onblur='checkWash(this);' value='Search store...'
I tried typing it in as so:
PHP Code:
[search.word onfocus='wash(this);' onblur='checkWash(this);' value='Search store...' classs='s'
but it broke... !!

THANKS