Hi @Krishna ,
You need to allow custom script on your sharepoint site to add Content Editor Webpart or Script Editor webparts. Please refer to this article for more: allow-or-prevent-custom-script
You can allow custom script on a particular site immediately with the below powershell command:
Connect-SPOService https://tenant-admin.sharepoint.com
Set-SPOsite https://tenant.sharepoint.com/sites/yoursite -DenyAddAndCustomizePages 0
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Hi @Krishna ,
You have to enable custom scripting to add custom css.
As a workaround, you could enable custom script your site first to add Content Editor Webpart or Script Editor webparts. After adding the css, just disable custom script on your site.
The existing Content Editor Webpart or Script Editor webparts would still work.
I don't have Tenant admin permission to enable custom scripts. Admin team is not ready to do enable scripting's.
I have only Site Collection Admin permissions. Can I do anything else to add CSS?
It isn't supported anyways. You'll need to develop a custom SharePoint Framework solution (likely Application Extension), but again manipulating the DOM isn't supported.
Sign in to comment