Jump to content

[Solved] Search Block help


Recommended Posts

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

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'}';" />

  • Like 1
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...