Advertise Today and target 1500+ SharePoint readers!
Powered by MaxBlogPress  

Get a free email account @sharepointbuzz.com
Sign up
Check e-mail

SharePoint Online
SharePoint BUZZ Logo

How To Change Search Box Image

I had a quick tip for those that are working on branding.  If you would like to change the search button image and CSS is not helping you acheive this via editing an XML file on the SharePoint web server.

Default WSS/MOSS Search Image:
MOSS Default Search Look and Feel

For the Enhanced Search edit the following file - C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\OSearchEnhancedFeature\SearchArea.xml

<?xml version=”1.0″ encoding=”utf-8″ ?>
<Elements xmlns=”http://schemas.microsoft.com/sharepoint/”>
<Control
Id=”SmallSearchInputBox”
Sequence=”50″
ControlClass=”Microsoft.SharePoint.Portal.WebControls.SearchBoxEx” ControlAssembly=”Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c”>
<Property Name=”GoImageUrl”>/_layouts/images/gosearch.gif</Property>

<Property Name=”GoImageUrlRTL”>/_layouts/images/goRTL.gif</Property>
<Property Name=”GoImageActiveUrl”>/_layouts/images/gosearch.gif</Property>

<Property Name=”GoImageActiveUrlRTL”>/_layouts/images/goRTL.gif</Property>
<Property Name=”DropDownMode”>ShowDD</Property>
<Property Name=”SearchResultPageURL”>/_layouts/osssearchresults.aspx</Property>
<Property Name=”ScopeDisplayGroupName”></Property>
<Property Name=”FrameType”>None</Property>
</Control>
</Elements>
For the Basic search edit the following file - C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\OSearchBasicFeature\SearchArea.xml

<?xml version=”1.0″ encoding=”utf-8″ ?>
<Elements xmlns=”http://schemas.microsoft.com/sharepoint/”>
<Control
Id=”SmallSearchInputBox”
Sequence=”50″
ControlClass=”Microsoft.SharePoint.Portal.WebControls.SearchBoxEx” ControlAssembly=”Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c”>
    <Property Name=”GoImageUrl”>/_layouts/images/gosearch.gif</Property>
    <Property Name=”GoImageUrlRTL”>/_layouts/images/goRTL.gif</Property>
    <Property Name=”GoImageActiveUrl”>/_layouts/images/gosearch.gif</Property>
    <Property Name=”GoImageActiveUrlRTL”>/_layouts/images/goRTL.gif</Property>
<Property Name=”DropDownMode”>ShowDD</Property>
<Property Name=”SearchResultPageURL”>/_layouts/osssearchresults.aspx</Property>
<Property Name=”ScopeDisplayGroupName”></Property>
<Property Name=”FrameType”>None</Property>
</Control>
</Elements>
After changing the file button, reset IIS and here is what it would look like:

Custom WSS/MOSS Search Image:
MOSS Custom Search Look and Feel

If you like to see more branding related posts or something different, let me know by commenting below.  Just wanted to make a shout to Muhanad with his post Customizing the SharePoint Search Control.

"How To Change Search Box Image" was published on January 16th, 2008 and is listed in Pages and User Interface, Tutorial, User Interface and Navigation.

Follow comments via the RSS Feed | Leave a comment | Trackback URL

Comments on "How To Change Search Box Image": 3 Comments

  1. Links (1/16/2008) « Steve Pietrek’s SharePoint Stuff wrote,

    [...] How To Change Search Box Image [...]

  2. SharePoint, SharePoint and stuff : SharePoint Kaffeetasse 40 wrote,

    [...] How To Change Search Box Image [...]

  3. Shared Points... : Search features, web parts and delegate controls wrote,

    [...] http://www.sharepointbuzz.com/index.php/2008/01/16/how-to-change-search-box-image/ [...]

Leave Your Comment

You must be logged in to post a comment.