How to Remove the Top Banner from SharePoint Online Modern Pages?

Requirement: Remove the header banner from the SharePoint Online Modern page.

How to Remove Banner in SharePoint Online Modern Page?

By default, creating a new modern page in SharePoint Online creates a page with a large header on the top of the page. However, the top banner on modern pages can sometimes get in the way or be visually distracting. This article will explain how to remove the top banner from SharePoint Online modern pages.

Hiding the top banner from SharePoint Online pages is no longer a difficult task! Just follow these steps:

  1. Click on the Settings gear and choose “Edit Page” to open the page in Edit Mode
    sharepoint online modern page remove banner
  2. Click on the “Edit” pencil icon in the “Title Area”. Set the “Layout” to “Plain”, save, and close the page.

That’s all! Please note, the Plain layout is a recent update in SharePoint Online. Previously, I had to open the page in SharePoint designer and replace the line:

<mso:PageLayoutType msdt:dt="string">Article</mso:PageLayoutType>

With

<mso:PageLayoutType msdt:dt="string">Home</mso:PageLayoutType>

Hide Banner in SharePoint Online Page using PnP PowerShell: 

Another way to remove the banner from SharePoint Online Modern pages.

Step 1: Connect to SharePoint Online

#Connect to SharePoint Online site
$SiteURL = "https://crescent.sharepoint.com/sites/marketing/2019"
Connect-PnPOnline $SiteURL -Credential (Get-Credential)

Step 2: Get the ID of the SharePoint Online Page

#Get the ID of the Page
Get-PnPListItem -List SitePages

Step 3: Change Page Layout

#Change Page layout from "Article" to "Home"
Set-PnPListItem -List SitePages -Identity "2" -Values @{"PageLayoutType"="Home"}

The above PowerShell script takes an ID as the parameter. So, follow these steps to the “ID” column in the “Site Pages” library.

  1. Navigate to the SharePoint Online site >> Click on Settings Gear >> Choose “Site Contents”.
  2. Open the “Site Pages” Library.
  3. Click on the settings gear again and choose “Library Settings”.
  4. Click on the default view to modify it.
  5. Select the ID column and click on “OK” to add the ID to the default view.

In summary, removing the top banner from SharePoint Online modern pages is a simple process that can improve the visual design of your site. By following the steps outlined in this article, you can easily remove the top banner from your modern pages, giving you greater control over the look and feel of your site.

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

3 thoughts on “How to Remove the Top Banner from SharePoint Online Modern Pages?

  • Hi how do you unhide once hidden. If you hide the header it removes the save as template option

    Reply
  • For what I wanted, opening SP Designer and modifying the code worked! Thank you so much for sharing! I wanted to remove the banner completely.

    Reply
  • Thank you! it works.

    Reply

Leave a Reply

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