There are multiple ways to set the default value in small search input box depending of the scope. Approaches are described below:
Farm Level
If you want to change the default text in Farm level follow the steps,
- Open the file in notepad.
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\OSearchBasicFeature\SearchArea.xml
- Add the below property within the <Control> node.Here [Your Default Search Text] is the text you want to show in the search box.
- <Property Name="QueryPromptString"> [Your Default Search Text] </Property>
- Open the file in notepad.
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\OSearchEnhancedFeature\SearchArea.xml
- Add the below property within the <Control> node.Here [Your Default Search Text] is the text you want to show in the search box.
- <Property Name="QueryPromptString"> [Your Default Search Text] </Property>
Web Application/Site Collection/Site Level
If you want to change the default text for Web Application/Site Collection/Site (Web) level follow the below steps,
Van LaiPosted Jul 29, 2015, 9:38 PM
thx for sharing
Neeraj KumarPosted Jul 29, 2015, 3:52 PM
Good