CategoriesSharePoint

How to hide SharePoint header in modern pages

If you create a site page in SharePoint and want to hide a header like as default Sharepoint home with this command you can hide it.

The whole Idea is the default home page has a specific content type and if you set the page content type to “Home” the header will be hidden.

You can change the content type with this PowerShell command like this:

Set-PnPListItem -List SitePages -Identity “6” -Values @{“PageLayoutType”=”Home”}

In the above command, two parameters are important.

  • -List: is the name of your site page library
  • -Identity: its the ID of your page

Welcome to SPTips blog

Welcome to the SPTips blog!

As a developer, Always I’d like to share my dev skills and ideas It’s the place where I can write, Main topic of this blog is related to Microsoft SharePoint but I think you will find many different things here in the future.

Thanks