I need to daisplay a text inside the search box (like: type your search here), and I see it exist but has a css "display:none"
if I change it to "inline" it messes up the design, how can I show the text inside the search box without messing up the design?
1 answer
Got it.
For future reference.
don’t mess with the css legend, it has nothing to do with it.
go to /app/design/frontend/default/jm_tube/template/catalogsearch/form.mini.phtml
and change:
<input id="search" type="text" class="input-text" name="<?php echo $this->helper(‘catalogSearch’)->getQueryParamName() ?>" value="<?php echo $this->helper(‘catalogSearch’)->getEscapedQueryText() ?>" />
to:
<input id="search" type="text" class="input-text" name="<?php echo $this->helper(‘catalogSearch’)->getQueryParamName() ?>" value="Your search statement" onfocus="if(this.value==this.defaultValue)this.val ue=”;" onblur="if(this.value==”)this.value=this.defaultV alue;"/>
This question is now closed