How to Show Missing Classic Webparts In SharePoint Online?

You might have seen that classic webparts are missing when you create a new site collection/tenant and try to add classic webparts like Script editor, Content editor or any search webparts in modern SharePoint site.

In the below modern SharePoint site, you can see classic webparts are missing.


In this article, you will learn how to show missing classic webparts in SharePoint online ?.

There are two approaches to show classic webparts in modern SharePoint :

👉 By activating Custom Script feature

👉 By Using PowerShell Script

👉 Result

To activate the custom script feature follow the below steps:

  1. Go to the App launcher on the left top corner.
  2. Select Admin > SharePoint 
  3. Select Admin > SharePoint > Setting
Classic SharePoint Admin Center
  1. Scroll down the page and you will see the custom script and then Allow both to activate the feature
Custom Script
  1. Click Ok.

📝 Note:

By using the above steps all classic webparts will be visible but It will take nearly 24 hours to activate this feature so for the fast solution we can use our another approach: PowerShell script.

Solution 2: Using Powershell Script

Open SharePoint Online Management Shell as Admin and run below PowerShell Script.

//Replace your 'USERID' and 'DOMAIN'
$adminEmail =""

//Get user credentials
$userCredential = Get-Credential -UserName $adminEmail -Message "Enter password"

//Connect to SharePoint Online service
Connect-SPOService -Url https://$ -Credential $userCredential

//set you site collection or tenent URL
Set-SPOsite -DenyAddAndCustomizePages 0 


After applying one of the above approach your webparts will be visible, you can see the result as below:


Sharing is Caring.
Happy Coding

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments