tdr170 Posted January 27, 2012 Share Posted January 27, 2012 I would like to remove the word Search from the text box in the search bar, anyone know how to do this. I looked through the files and could not seem to find the proper place to remove. Or is there a way to have the word search disappear when you click in the search box like it does in the search box on top of this page. Thanks. Link to comment Share on other sites More sharing options...
_matis_ Posted January 27, 2012 Share Posted January 27, 2012 in modules/blocksearch/blocksearch-top.tpl replace <input class="search_query" type="text" id="search_query_top" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|htmlentities:$ENT_QUOTES:'utf-8'|stripslashes}{/if}" /> with <input class="search_query" type="text" id="search_query_top" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|htmlentities:$ENT_QUOTES:'utf-8'|stripslashes}{else}{l s='Search entire store...' mod='blocksearch'}{/if}" onfocus="if(this.value=='{l s='Search entire store...' mod='blocksearch'}')this.value='';" onblur="if(this.value=='')this.value='{l s='Search entire store...' mod='blocksearch'}';" /> 1 Link to comment Share on other sites More sharing options...
tdr170 Posted January 27, 2012 Author Share Posted January 27, 2012 Thanks; Just what I was looking for for some reason in my original search bar you would have to delete the text manually. If you just clicked and typed you would get Searchwhatever. This worked great I did change the term Search entire store... to just Search... Thanks Again. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now