SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We want to change the look of the search box, specifically the image.

CSS won't work. We have a regular publishing site in SP2010 and we're modifying the master page v4.master.

The current image source is coming from sharepoint: /_layouts/images/gosearchrtl15.png

Any ideas?

share|improve this question
what do you mean "css won't work"? – user298 Sep 27 '10 at 13:56
because the image is specified in the definition of image, ie: <img src="images/img.gif"> and the src tag cant's be modified using css – Bassel Alkhateeb Sep 28 '10 at 6:49
up vote 3 down vote accepted

If you look in the MasterPage you will see that there is a DelegateControl called SmallSearchInputBox.

DelegateControls let you swap out controls for controls defined in features at a web/site/application/farm level. For more details see the linked blog post, it's Targetted at SP2007, but the concept is the same in 2010.

You can also copy this file into your own feature as a starting point.


Simply change the two properties for "GoImageUrl" and "GoImageUrlActive" (and optionally the RTL versions of them)

share|improve this answer
I just need to change the icon of the search box... there should be a much simpler way.. I mean do I have to implement a feature just to change the image!! – Bassel Alkhateeb Sep 28 '10 at 6:57
I know, if feels like there should be an easier way, but unfortunately your other options are all a bit hacky. – Neil White Sep 28 '10 at 9:47
you're right, implementing a feature was the best/easiest way – Bassel Alkhateeb Sep 28 '10 at 14:15

I typically use css to cancel out the existing image, then put my own image as a background. I wrote up my normal process for styling/skinning the SharePoint 2010 (MOSS) Search Box. It might be useful to anyone reading this article looking for a walkthrough. Skin/Style the SharePoint 2010 OOB Search Control -

share|improve this answer

If it is set in the control definition, and not in the CSS which sometimes happens, you can either replace the image (bad idea) or put some simple code in the masterpage to swap out the image after the page renders.

share|improve this answer

I wrote an article for a while about creating a design for SharePoint 2010 search boxes at MSDN, hopes this could helps:

/ Christian

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.