Forum Discussion
Pbala
Jun 23, 2021Copper Contributor
Insert script in the header of the Modern page- SharePoint Online
Hi, We are redesigning our intranet and upgrading to the Modern SharePoint site. One of the requirements is to insert a script in the header and div tag on the homepage. How do I go about setting ...
- Jun 26, 2021
Pbala If you want to a insert script only on single modern site page, you can use Modern script editor web part developed by community members.
Check below links for script editor web parts (developed using SPFx):
Also, check my answers given in below links about how to use these web parts:
- SharePoint Online and adding an interactive page (Javascript)
- Current user context in SharePoint modern page
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Jun 26, 2021
Hello,
I would recommend creating a SPFx Extension webpart.
Yours sincerely,
Aref Halmstrand
I would recommend creating a SPFx Extension webpart.
Yours sincerely,
Aref Halmstrand