Jump to content
Sign in to follow this  
Tropical Dream

How to remove the big SEARCH button from the search box?

Recommended Posts

I would like to keep the search box, but remove the big SEARCH button that is on the top right of the box.

There are 2 files I suspect to be responsible for this button:
modules/blocksearch/blocksearch.tpl
modules/blocksearch/blocksearch-top.tpl

Which line of code do I have to modify?

Share this post


Link to post
Share on other sites

Maybe I was not clear enough... here is a screenshot of the search button I would like to remove. The button is on the right :)

Which line of code do I have to edit?

11755_AR3FDC1vX7Ze5GlMVcqB_t

Share this post


Link to post
Share on other sites

The line you are looking for is line 9 of modules/blocksearch/blocksearch-top.tpl:

<input type="submit" name="submit_search" value="{l s='Search' mod='blocksearch'}" class="button" />



I'm not sure why you want to remove it though, since then there is no way to submit the search.

Share this post


Link to post
Share on other sites

that was quick, thanks!

well actually, I wanted like to simply remove the "search button", I would like to keep the submit function by pressing "enter on keyboard" after entering the query.

I changed the line you suggested me to:

<!--<input type="submit" name="submit_search" value="{l s='Search' mod='blocksearch'}" class="button" />-->



And it removed the search box, but I can still press enter. Thanks for your help!

Share this post


Link to post
Share on other sites

Hi,
You can do the same thing much more easily by using the translation tool in your BO.

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More