ThemeShaper Forums » Thematic

image as search button

(3 posts)
  • Started 10 years ago by dannydamnboy
  • Latest reply from dannydamnboy
  • This topic is resolved
  1. 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!

    Posted 10 years ago #
  2. 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!

    Posted 10 years ago #
  3. It works fine, thank you but the rendering is different in EVERY browser. I'm going to use the standard button. Thanks again!

    Posted 10 years ago #

RSS feed for this topic

Reply

You must log in to post.