SharePoint Online: Web Designer Galleries (Site Columns, Content Types, Web Parts, List Templates, etc.) Missing in Site Settings

Problem: Web Designer Galleries section with the below links missing in SharePoint Online Site Settings page:

  • Site Columns
  • Content Types
  • Web Parts
  • List Templates
  • Master Pages
  • Themes
  • Solutions
  • Composed Look

Furthermore, under the “Site Collection Administration” section: HTML Field Security, SharePoint Designer Settings links are missing!

Solution: Enable Custom Script!

To enable custom script in SharePoint Online, do the following:

  1. Sign in to Your SharePoint Online Admin Center site: https://YourDomain-Admin.SharePoint.com
  2. Click on Settings from the left navigation >> Scroll down to the “Custom Script” section
  3. Under the Custom Script section, Set “Allow users to run custom script on personal site” and “Allow users to run custom script on self-service created sites” options to enable custom script SharePoint Online.SharePoint Online: Web Designer Galleries (Site Columns, Content Types, Web Parts, List Templates, etc) Missing in Site Settings
  4. Click on “OK” to save your changes.

However, this change may take up to 24 hours to reflect. 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

Here is the PowerShell script to enable custom script in SharePoint Online:

#Config Parameters
$AdminSiteURL="https://crescent-admin.sharepoint.com"
$SiteURL="https://crescent.sharepoint.com"
   
#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://crescent-Admin.sharepoint.com"
$SiteURL = "https://crescent.sharepoint.com/sites/credit"

#Connect to Admin Center
Connect-PnPOnline -Url $AdminSiteURL -Credentials (Get-Credential)

#Disable Deny Add-Customize Pages
Set-PnPTenantSite -Identity $SiteURL -DenyAddAndCustomizePages:$False

Here is the side-by-side comparison of the DenyAddAndCustomizePages flag Disabled and the Enabled:

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

2 thoughts on “SharePoint Online: Web Designer Galleries (Site Columns, Content Types, Web Parts, List Templates, etc.) Missing in Site Settings

  • Thank you!

    Reply
  • Is there another solution to this? It doesn’t work. the section is available but the Web Parts category does not show.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *