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

APPLIES TO: yes-img-132013 yes-img-162016 yes-img-192019 yes-img-seSubscription Edition no-img-sopSharePoint in Microsoft 365

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 screenshot 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 prompt variable with the text you want to display. Enclose the text in quotation marks.

    The following screenshot 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.