Microsoft 365 – SharePoint online – hiding site title using PnP PowerShell
Hi All,
Greetings for the day!!!
Today learned new small SharePoint online site feature so sharing ! SHARING IS CARING 🙂
Learning – How to hide SharePoint online site title using UI (from Site) and PnP PowerShell Set-PnPWeb
Details / Background
- In one of our project of SharePoint online – we have requirement of hiding site title
- For single site we could easily do it from UI
- But in our case we have prepared our custom site template and creating sites using our custom template
- We were using PnP provisioning site template
- Through PnP provisioning (from template XML file), I couldnt found the way to hide site title
- Then found the PnP CMDLET – Set-PnPWeb
Steps to hide site title from UI
- Navigate to the site on which we need to hide – Title
- Here I am using my local development tenant – knowledgejunction1
- I am demonstrating on root site
- From right top corner click on “gear” icon
- Right pane “Settings” will appear as shown in below fig
- Kindly please click on last link – “Change the look”
- As we click on “Change the look” link, “Change the look” pane from right side will open as shown in below fig
- From “Change the look” pane we need to navigate on “Header” section
- As we click on “Header” section, “Header” section pop-up will appear as
- From “Header” section right pane, we have an option / setting / flag – “Site title visibility” as shown in above fig
- Just turn off the flag and click on “Save” button
- As in “Header” section we click on “Save” button, our site title will disappear as shown in below fig
Steps to hide site title using PnP PowerShell
- As we have requirement to hide our communication site titles using PowerShell, we tried PnP PowerShell
- There is PnP PowerShell CMDLET called – Set-PnPWeb having attribute –HideTitleInHeader
- Connect to the site on which we need to hide – Title
- We will use Connect-PnPOnline to connect the site
Connect-PnPOnline -Url https://knowledgejunction1.sharepoint.com
- As we successfully connected to respective site, we will use “Set-PnPWeb” PnP PowerShell CMDLET to hide site title
- We will use “-HideTitleInHeader” attribute of “Set-PnPWeb” CMDLET to hide site title
Set-PnPWeb -HideTitleInHeader
REFERENCES
https://github.com/pnp/powershell/blob/dev/documentation/Set-PnPWeb.md
Thanks for reading ! HAVE a FANTASTIC LEARNING 🙂 LIFE IS BEAUTIFUL 🙂
You must be logged in to post a comment.