Forum Discussion
Insert script in the header of the Modern page- SharePoint Online
- 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.
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.
- danzietlowJul 02, 2024Copper Contributor
ganeshsanap Are there any examples of using the Modern Script Editor to modify the SharePoint Online title section you can point me to?
- PbalaJun 30, 2021Copper ContributorThanks Ganesh, I will try this out. Question is can I add the script tag to a modern page header ?
Thanks
Pbala- Jul 01, 2021The extension can show up as a header.
Yours sincerely,
Aref Halmstrand- Marco FriedmannFeb 18, 2022Copper Contributor
ArefHalmstrand do you have a link on a tutorial to do that?
- RobElliottJun 30, 2021Silver ContributorNot out-of-the-box.