Remove the page title from a modern page as well as the white space? Someone has done it.

Steel Contributor

One of our staff members has managed to remove the page title as well as the white space that is normally taken up when you delete the page title.

 

It is also unavailable when editing the page.

 

I am unable to replicate, does anyone know how they have achieved this?  Because we would love to do this on other pages.

 

Thanks!

20 Replies

This looks like a home page. Which doesn't have the banner anyway. So you can just copy that page to another page.

To do that go into site content, tick the page, then use copy to, and select the current location. Then rename the page and edit as required.

 

Just did that to check and it worked ...

The new on the page, also allows you to copy.

Hi Stephen,

This confused me for a while until I realised that it is only possible to achieve this on sites created via Microsoft Groups.

Unfortunately, it does not appear possible to have a page with no page title or white space on sites/site collections created via the admin centre.

There does not appear to be a method allowing me to transfer/download a page from one site collection to another. Would love to know if this is possible though.

It might be possible to use SharePoint Designer to do it. Open the page there in html view. Copy the content and paste into a newly created page.

 

I think I saw someone post how to do this on one of the blog posts a while ago. Sorry not sure as all my site now are created from the SharePoint page with Create Site.

Please, don't use SharePoint Designer with SPO Modern Pages...I cannot imagine the side effects you can introduce and also the waste of time you can get
Thanks, Juan,

I do not touch SharePoint Designer these days, haven't done for a few years. Out of the box or nothing for us at the moment.

@Andrew Silcock @Deleted @Juan Carlos González Martín  

Change the page layout to home from article by editing it SharePoint Designer.

ModernLayOut.png

 

You may contact me any SharePoint related development at savan12791@gmail.com

 

 

Thanks  

@SavanGuptaThanks! This worked for me. I just wanted to remove the white space left by removing the title.

@SavanGupta Thank you. I am just looking to hide title on the banner, i donot want to remove banner, Can you please help ?

Thanks everyone for info. Although we are locked out from opening Modern SharePoint sites either in SPD or mapping the site as a network drive. However I was able to achieve this by using the "Copy To" on the Home page of my modern communication site. Copied it to same library and renamed it to create pages with the home page layout! Good way of not using SPD!

@Andrew Silcock 

Hi, edit the page and the change the layout to "Plain" then run the following PowerShell script to change the Page Layout from "Article" to "Home". Make sure you use your own SharePoint URL and use the proper ID of the Page

#Connect to SharePoint Online site
$SiteURL = "https://mysite.sharepoint.com/"
Connect-PnPOnline $SiteURL -Credential (Get-Credential)
#Get the ID of the Page
Get-PnPListItem -List SitePages
#Change Page layout from "Article" to "Home"
Set-PnPListItem -List SitePages -Identity "5" -Values @{"PageLayoutType"="Home"}

Here is a post where you can find step by step details: https://jamilhallal.blogspot.com/2022/01/how-to-remove-the-top-banner-from-sharepoint-online-modern-...

@jhallal 

 

After I put this into PowerShell ISE, I get error message(s)

 

PS C:\Users\Michael's Surface> #Connect to SharePoint Online site
$SiteURL = "https://michaelq.sharepoint.com/work/"
Connect-PnPOnline $SiteURL -Credential (Get-Credential)
#Get the ID of the Page
Get-PnPListItem -List SitePages
#Change Page layout from "Article" to "Home"
Set-PnPListItem -List SitePages -Identity "7" -Values @{"PageLayoutType"="Home"}

 

These are the error message(s) I get

 

cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Connect-PnPOnline : The term 'Connect-PnPOnline' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:3 char:1
+ Connect-PnPOnline $SiteURL -Credential (Get-Credential)
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Connect-PnPOnline:String) [], CommandNotFoundExcepti
on
+ FullyQualifiedErrorId : CommandNotFoundException

Get-PnPListItem : The term 'Get-PnPListItem' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At line:5 char:1
+ Get-PnPListItem -List SitePages
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-PnPListItem:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Set-PnPListItem : The term 'Set-PnPListItem' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At line:7 char:1
+ Set-PnPListItem -List SitePages -Identity "7" -Values @{"PageLayoutTy ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Set-PnPListItem:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Using a non-"home" page layout retains the page title in the browser tab. I wanted to remove the white space after the page title that is reserved for the author name. When I copied a home page, the browser tab no longer had the page title.

@Stephen Snell 

 

If you "Copy" the home page back to page library, then highlight the page in the pages library, you have to manually go to page settings and update the properties (the Title and page name) to ensure they are not called "Home". In fact I normally save this a "blank page template".