Note: The steps described on this article only apply to Classic SharePoint sites and/or pages. BindTuning's Modern solutions do not require the activation of the Solutions option.
By default, for personal sites and self-service created sites in SharePoint Online, the option of Custom Script is disabled. To have the Solution option under Web Designer Galleries available in your SharePoint Online, follow the steps below:
Note: If you don't see the Admin tile, you don't have Office 365 administrator permissions in your organization.
- Log in as a global admin or SharePoint admin;
- Select the app launcher icon in the upper-left corner and choose Admin to open the Office 365 Administrator center;
- On the left pane, select Show All followed by SharePoint;
- Select Settings;
If you're currently seeing the Modern interface, click on Go to the classic settings page
- Under Custom Script choose to Allow users to run custom script on personal site and Allow users to run custom script on self-service created sites;
- Click OK.
Info: It can take up to 24 hours for the change to take effect.
To allow custom script on a particular site collection immediately, use this PowerShell script through SharePoint Online Management Shell.
PowerShell to Enable Custom Script in SharePoint Online Site Collection
#Config Parameters $AdminSiteURL="https://contoso-admin.sharepoint.com" $SiteURL="https://contoso.sharepoint.com/sites/site1" #Get Credentials to connect $Cred = Get-Credential #Connect to SharePoint Online Tenant Admin Connect-SPOService -URL $AdminSiteURL -Credential $Cred #Disable DenyAddAndCustomizePages Flag Set-SPOSite $SiteURL -DenyAddAndCustomizePages $False
You can also use PnP PowerShell to disable or enable “DenyAddandCustomizePages”.
#Site Variables $AdminSiteURL = "https://contoso-admin.sharepoint.com" $SiteURL = "https://contoso.sharepoint.com/sites/site1" #Connect to Admin Center Connect-PnPOnline -Url $AdminSiteURL -Interactive #Disable Deny Add-Customize Pages Set-PnPTenantSite -Identity $SiteURL -DenyAddAndCustomizePages:$False
Comments