Remove title header on SharePoint Online

When creating a new page a header with the title of the page will be shown to the user. In the current days, it’s not possible to remove that header from the page using the SharePoint interface. Today, we will share a PowerShell that allows you to remove that area from the page and some article that you can use with different options.

Replace the variable below with your own and you will have a page without the title header.

$PageName = "PageName"
$LoginUrl = ""

Connect-PnPOnline -Url $LoginUrl -UseWebLogin
Set-PnPClientSidePage -Identity $PageName -LayoutType Home

If you intend to remove from all the SitePages use this code, but before you do to all of the Site Pages, I would recommend making some backup. You can use the approach of this article for this.

$LoginUrl = ""
Connect-PnPOnline -Url $LoginUrl -UseWebLogin

$pages = (Get-PnPListItem -List SitePages).FieldValues
foreach($page in $pages){
    Set-PnPClientSidePage -Identity $page.FileLeafRef -LayoutType Home


This is a possible approach for this case but there are other possibilities to achieve. Check below link (techmikael) to create an option inside SharePoint to have this option inside the properties of the page. There is also an extension for Google Chrome (Chrome-SP-Editor) which you can use to remove this option. The option used for that case is instead of using the option to remove the header, they use the Page Layout Home.


  1. Robert Moses said:

    Useful info. Thanks David!

    September 17, 2019

Leave a Reply

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