如何變更 SharePoint Server 中搜尋方塊網頁組件中顯示的文字How to change the text that is displayed in the Search Box Web Part in SharePoint Server

摘要:了解如何變更 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.

搜尋方塊中的預設文字

若要變更此文字方塊的步驟如下:Here are the steps to change this text:

  1. 在對應的網路磁碟機在移至 [顯示範本 --> 搜尋伺服器與開啟的檔案Control_SearchBox 。如需對應網路磁碟機的詳細資訊,請參閱階段 6: 上傳並將新的主版頁面套用到 in SharePoint Server 發佈網站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.

    取代提示文字

  3. 儲存檔案。Save the file.

    在 [搜尋中心] 中,您現在可以看到新的文字。In the Search Center, you can now see the new text.

    已顯示新文字

所以這是這一系列的。若要變更在搜尋中心搜尋結果的顯示方式,我們希望您將會尋找資訊這一系列實用。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.