Forum Discussion
Örjan Andersson
Mar 28, 2018Copper Contributor
Using search in modern sites
Without getting a complete answer (what the future will bring) I can see from earlier posts that people have asked if it’s possible to change/configure default search in a modern Communication Site? ...
Örjan Andersson
Apr 06, 2018Copper Contributor
Until support for using the standard search settings...SharePoint Framework Extension together with jQuery solves the replacement of a new search box. :-)
Lennaert van der Meer
Jun 21, 2018Copper Contributor
Hi Örjan, your solution, is that also for SharePoint online? Thanks in advance!
- Örjan AnderssonJun 21, 2018Copper ContributorOnly did a POC but this was done in SharePoint Online (Office 365)
- Lennaert van der MeerJun 22, 2018Copper ContributorThanks for your reply, could you help me a little? I saw you can download sfx but how do you implement it Finally in SPO? With powershell?
- Örjan AnderssonJul 06, 2018Copper Contributor
Sorry for late response. This is a development framework so you need to code.
Have a look here to getting started:Look for implementing an application customizer and make sure that jQuery is referenced
import * as jQuery from 'jquery';To reference the placeholder containing search boxjQuery(".ms-compositeHeader-searchBoxContainer").html("Replaced");This just replace the placeholder with text but you can extend this to use a custom search box or adding custom event to the already existing inputbox.