Forum Discussion
Örjan Andersson
Mar 28, 2018Brass 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? ...
Lennaert van der Meer
Jun 22, 2018Brass Contributor
Thanks 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 Andersson
Jul 06, 2018Brass 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 box
jQuery(".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.