Jun 23 2021 08:24 AM
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 this ? The script and HTML tag are only loaded on the homepage, we don't plan to use them on other pages. It is a social feed from Curalate (Approved Instagram images).
Any help is appreciated.
Thanks
Jun 26 2021 01:17 AM
Solution@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:
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 05:19 AM
Jun 30 2021 07:34 AM
Jun 30 2021 08:07 AM
Jul 01 2021 03:18 PM
Feb 18 2022 01:58 PM
@ArefHalmstrand do you have a link on a tutorial to do that?
Feb 22 2022 08:45 AM
I used the Modern CEWP to insert script. It worked great for me.
https://spjsblog.com/modern-cewp/
Once you install in your environment, it will be available as a below when u add a webpart.
And add your code here...
Hope this helps.
Jul 02 2024 08:40 AM
@ganeshsanap Are there any examples of using the Modern Script Editor to modify the SharePoint Online title section you can point me to?
Jun 26 2021 01:17 AM
Solution@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:
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.