Set site Title visibility to on/off using PnP? #212
-
Is there a way to change the site title visibility to On/Off using PowerShell/PnP? Related to the new SharePoint feature (rolling out) with new site header options (header layouts, visibility, etc.). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
not yet with the built in cmdlets. However, you can do this: $web = Get-PnPWeb
$web.HideTitleInHeader = $false
$web.Update()
Invoke-PnPQuery However, as of tomorrow (2021-02-11, version 1.2.20-nightly) there will be a switch added to Set-PnPWeb Set-PnPWeb -HideTitleInHeader # to hide the title
Set-PnPWeb -HideTitleInHeader:$true # to make it visible again. You will have to install the latest nightly to get the updated Set-PnPWeb cmdlet: Install-Module -Name PnP.PowerShell -AllowPrerelease To update to a specific version Install-Module -Name PnP.PowerShell -AllowRerelease -RequiredVersion 1.2.20-nightly |
Beta Was this translation helpful? Give feedback.
-
Don't you mean -HideTitleInHeader:$false # to make it visible again
🙂
Anders
…________________________________
From: Erwin van Hunen <notifications@github.com>
Sent: 10 February 2021 16:44
To: pnp/powershell <powershell@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: Re: [pnp/powershell] Set site Title visibility to on/off using PnP? (#212)
not yet with the built in cmdlets. However, you can do this:
$web = Get-PnPWeb
$web.HideTitleInHeader = $false
$web.Update()
Invoke-PnPQuery
However, as of tomorrow (2021-02-11, version 1.2.20-nightly) there will be a switch added to Set-PnPWeb
Set-PnPWeb -HideTitleInHeader # to hide the title
Set-PnPWeb -HideTitleInHeader:$true # to make it visible again.
You will have to install the latest nightly to get the updated Set-PnPWeb cmdlet:
Install-Module -Name PnP.PowerShell -AllowPrerelease
To update to a specific version
Install-Module -Name PnP.PowerShell -AllowRerelease -RequiredVersion 1.2.20-nightly
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#212 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAMTDTXQQPKAW3NLBUUXLQ3S6KSVFANCNFSM4XC2TXWA>.
|
Beta Was this translation helpful? Give feedback.
not yet with the built in cmdlets. However, you can do this:
However, as of tomorrow (2021-02-11, version 1.2.20-nightly) there will be a switch added to Set-PnPWeb
You will have to install the latest nightly to get the updated Set-PnPWeb cmdlet:
To update to a specific version