When you create a new SharePoint Team site (either directly or indirectly via a Teams team) you always get a "home" page that does not contain a title graphic.
Strangely if you create your OWN site pages then you ALWAYS get the title graphic and can't remove it from the GUI.
If you ever delete that default page then you can't ever recreate that page from the GUI.
Fortunately there is a way to switch the title bar "off" via PowerShell. The secret is to change the "layout type" to "Home".
These are the steps inside an ADMIN PowerShell:
Firstly install SharePoint PNP with
[PS] Install-Module
SharePointPnPPowerShellOnline -SkipPublisherCheck -AllowClobber
If installed already you may wish to update your version with:
[PS]
Update-Module SharePointPnPPowerShell*
With that done, enter your admin credentials with
[PS]
$creds = Get-Credential
Then set the name of the page you want to change:
[PS] $PageName = "Home"
Then set the URL of the site that has the page you wish to change (use your tenant)
[PS] $LoginUrl = "https://{tenant}.sharepoint.com/sites/Test"
Now connect to the site
[PS] Connect-PnPOnline -Url $LoginUrl
-Credentials $creds
or with MFA you may need
[PS] Connect-PnPOnline -Url $LoginUrl
-UseWebLogin
Now to do the switch:
[PS] Set-PnPClientSidePage -Identity
$PageName -LayoutType Home
Wednesday, 17 June 2020
Subscribe to:
Posts (Atom)