Requirement: Create a Modern page in Classic SharePoint Online site
SharePoint Online: How to Create a Modern Page in a Classic Site?
To create modern pages in Classic SharePoint Online sites, follow these steps:
Step 1: Activate Modern Page Feature
The “modern” pages are provided by the web scoped feature “Site Pages” (Feature GUID: B6917CB1-93A0-4B97-A84D-7CF49975D4EC). Once this feature is activated, your site has the option to use “modern” pages. So, If you want “modern” page functionality on classic sites, you can activate the “Site Pages” feature.
#Set Parameters $SiteURL="https://crescent.sharepoint.com/sites/Neo" #Connect to Site Connect-PnPOnline $SiteURL -UseWebLogin #Enable site pages feature at web scope Enable-PnPFeature -Identity B6917CB1-93A0-4B97-A84D-7CF49975D4EC -Scope Web
Step 2: Create a Modern Page
Once you enabled the feature, You’ll find “” listed in Site contents page or in “Site Pages” library of your site.
Now, you can create a modern page, set it as home page, if required. You can also go to “Site Pages” Library >> Click on “New” and “Site Page”