SOLVED

How show the search control on all pages in a site

Copper Contributor

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

fishscience_0-1623334008795.png

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

5 Replies
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.

@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?

 

fishscience_0-1623366913956.png

 

@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

@KrunalRohit Thank you! It is very helpful.

best response confirmed by fishscience (Copper Contributor)
Solution
Please mark the reply as accepted, as it would help others as well. Thanks!
1 best response

Accepted Solutions
best response confirmed by fishscience (Copper Contributor)
Solution
Please mark the reply as accepted, as it would help others as well. Thanks!

View solution in original post