Hi there, how to overwrite the search function in widgets.php to add an image as a search button?
i've already tried but with no results.
thanks in advance!
Hi there, how to overwrite the search function in widgets.php to add an image as a search button?
i've already tried but with no results.
thanks in advance!
Hi,
I don't think it's ok to modify the widgets.php file. The best and easiest way to do it is to target the search button like this through css:
#searchsubmit{
background:url(images/search_button.jpg) top left no-repeat;
width:60px;
height:25px;
}
You'll need to add the same with and height as your image button(and even 1px larger on both dimensions for IE compatibility). There will still be writing Search above your button, so if you want remove it with text-indent:-990px;
Let me know if that worked!
It works fine, thank you but the rendering is different in EVERY browser. I'm going to use the standard button. Thanks again!
You must log in to post.