Forum Discussion

fishscience's avatar
fishscience
Copper Contributor
Jun 10, 2021
Solved

How show the search control on all pages in a site

On Site Content page: .../_layouts/15/viewlsts.aspx?view=14, we can see a search control on the top center of the page:

How can I show the search control highlighted in red above on all pages such as page in site page library?

  • Please mark the reply as accepted, as it would help others as well. Thanks!

5 Replies

  • KrunalRohit's avatar
    KrunalRohit
    Brass Contributor
    As long as you're creating Site Page (modern page), you will have the Search Bar.
    If it is a Wiki Page or Web Part page (which are classic pages), you won't be getting the Search Bar.

    Thanks.
    • fishscience's avatar
      fishscience
      Copper Contributor

      KrunalRohit  yes. usually the search bar only appear for site page. However I see a site. Whatever wiki page, web part page , or site page, it has the search bar all along. Do you know how can I do it also?

       

       

      • KrunalRohit's avatar
        KrunalRohit
        Brass Contributor

        fishscience It is by design only. However, you can customize it by using SharePoint PnP PowerShell extensions.
        Please refer this for more info - https://docs.microsoft.com/en-us/microsoftsearch/manage-spo-search-box

Resources