How to remove the Page Title in SharePoint Online Modern Page?
Requirement: Remove the title area from the page in SharePoint Online.
When you create a new page in SharePoint Online, The title area appears on the top with a banner image and the page title. In some cases, you may want to remove the page title to make the page look cleaner or more professional. However, SharePoint Online doesn’t allow you to save and publish a modern page without its “Title”. If you try to save a page with no title, you’ll get an error popup, “Could not complete that action: Page title cannot be blank.”
So, How to remove the page title from SharePoint modern page? Fortunately, we have a way to do this in SharePoint Online with PnP PowerShell. This blog post will guide you through the process of removing the page title from a Modern page in simple steps.
Remove the page title from SharePoint Modern page
To remove the page title, we have to change the page layout from “Article” to “Home”. Here is how to remove the title area from the SharePoint page by switching the page layout using PnP PowerShell Set-PnPPage cmdlet:
#Config Variables
$SiteURL = "https://crescent.sharepoint.com/sites/Retail"
$PageName = "About-us" #Just the page name without .aspx extention
Try {
#Connect to PnP Online
Connect-PnPOnline -Url $SiteURL -Interactive
#Change the Page layout
Set-PnPPage -Identity $PageName -LayoutType Home
Write-host -f Green "Page Title has been removed!"
}
catch {
write-host "Error: $($_.Exception.Message)" -foregroundcolor Red
}
This removes the Title area from the page! Not only the page title, but the entire title, area along with the banner.
Removing the page title in SharePoint Online modern pages can help you achieve a cleaner and more customized look for your site. By following the steps outlined in this guide, you can easily remove the page title from any modern page in SharePoint Online.
Here is my other post on removing the top banner from SharePoint Online: How to Remove the Top Banner from a Modern Page in SharePoint Online?