How to change the text that is displayed in the Search Box Web Part in SharePoint Server

Summary: Learn how to change the text that is displayed in the Search Box Web Part in SharePoint Server.

This article will be short and sweet, so let's get right to it.

How to change the text that is displayed in the Search Box Web Part

The following screen shot shows the default text that is displayed in the Search Box Web Part.

Default Text in Search Box

Here are the steps to change this text:

  1. In your mapped network drive, go to Display Templates --> Search, and open the file Control_SearchBox . For details about mapping your network drive, see Stage 6: Upload and apply a new master page to a publishing site in SharePoint Server.

  2. Replace the value for the promt variable with the text you want to display. Enclose the text in quotation marks.

    The following screen shot shows how we changed this in our Search Center scenario.

    Replace the Prompt Text

  3. Save the file.

    In the Search Center, you can now see the new text.

    New Text Displayed

So that's it for this series. If you plan to change how search results are displayed in your Search Center, we hope you'll find the information in this series helpful.