ThemeShaper Forums » Thematic

image as search button

(3 posts)
  • Started 12 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 12 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:
    background:url(images/search_button.jpg) top left no-repeat;

    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 12 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 12 years ago #

RSS feed for this topic


You must log in to post.