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>​
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>​
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