Configure

Remove Title Area from SharePoint Page

This sample script shows how to remove the title area from SharePoint online site page using PnP PowerShell and CLI for Microsoft 365.

Summary

This sample script shows how to remove the title area at the top of the page from SharePoint online site page using PnP PowerShell and CLI for Microsoft 365.

Scenario inspired from this blog post: SharePoint Online: Create a blank page without header & title

Outupt Screenshot

powershell

# SharePoint online site url
$siteUrl = "https://contoso.sharepoint.com/sites/SPConnect"	

# Name of the site page
$pageName = "MyPage"

# Connect to SharePoint Online site
Connect-PnPOnline -Url $siteUrl -Interactive

# Set site page layout to remove title area
Set-PnPPage -Identity $pageName -LayoutType Home

# Use below command to bring back the page title area
# Set-PnPPage -Identity "MyPage" -LayoutType Article

Contributors

Author(s)
Ganesh Sanap

Disclaimer

THESE SAMPLES ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.

Tool documentation & references

Keep exploring