SOLVED

How show the search control on all pages in a site

%3CLINGO-SUB%20id%3D%22lingo-sub-2434977%22%20slang%3D%22en-US%22%3EHow%20show%20the%20search%20control%20on%20all%20pages%20in%20a%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2434977%22%20slang%3D%22en-US%22%3E%3CP%3EOn%20Site%20Content%20page%3A%20...%2F_layouts%2F15%2Fviewlsts.aspx%3Fview%3D14%2C%20we%20can%20see%20a%20search%20control%20on%20the%20top%20center%20of%20the%20page%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fishscience_0-1623334008795.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F287820i545BD375163DB4BC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22fishscience_0-1623334008795.png%22%20alt%3D%22fishscience_0-1623334008795.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHow%20can%20I%20show%20the%20search%20control%20highlighted%20in%20red%20above%20on%20all%20pages%20such%20as%20page%20in%20site%20page%20library%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2434977%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2435877%22%20slang%3D%22en-US%22%3ERe%3A%20How%20show%20the%20search%20control%20on%20all%20pages%20in%20a%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2435877%22%20slang%3D%22en-US%22%3EAs%20long%20as%20you're%20creating%20Site%20Page%20(modern%20page)%2C%20you%20will%20have%20the%20Search%20Bar.%3CBR%20%2F%3EIf%20it%20is%20a%20Wiki%20Page%20or%20Web%20Part%20page%20(which%20are%20classic%20pages)%2C%20you%20won't%20be%20getting%20the%20Search%20Bar.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2437439%22%20slang%3D%22en-US%22%3ERe%3A%20How%20show%20the%20search%20control%20on%20all%20pages%20in%20a%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2437439%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F489379%22%20target%3D%22_blank%22%3E%40KrunalRohit%3C%2FA%3E%26nbsp%3B%20yes.%20usually%20the%20search%20bar%20only%20appear%20for%20site%20page.%20However%20I%20see%20a%20site.%20Whatever%20wiki%20page%2C%20web%20part%20page%20%2C%20or%20site%20page%2C%20it%20has%20the%20search%20bar%20all%20along.%20Do%20you%20know%20how%20can%20I%20do%20it%20also%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fishscience_0-1623366913956.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F287961iA6D3C1646F396D33%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22fishscience_0-1623366913956.png%22%20alt%3D%22fishscience_0-1623366913956.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional 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 (Occasional Contributor)
Solution
Please mark the reply as accepted, as it would help others as well. Thanks!